0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 .. c:namespace:: DTV.fe
0003
0004 .. _FE_READ_UNCORRECTED_BLOCKS:
0005
0006 **************************
0007 FE_READ_UNCORRECTED_BLOCKS
0008 **************************
0009
0010 Name
0011 ====
0012
0013 FE_READ_UNCORRECTED_BLOCKS
0014
0015 .. attention:: This ioctl is deprecated.
0016
0017 Synopsis
0018 ========
0019
0020 .. c:macro:: FE_READ_UNCORRECTED_BLOCKS
0021
0022 ``int ioctl(int fd, FE_READ_UNCORRECTED_BLOCKS, uint32_t *ublocks)``
0023
0024 Arguments
0025 =========
0026
0027 ``fd``
0028 File descriptor returned by :c:func:`open()`.
0029
0030 ``ublocks``
0031 The total number of uncorrected blocks seen by the driver so far.
0032
0033 Description
0034 ===========
0035
0036 This ioctl call returns the number of uncorrected blocks detected by the
0037 device driver during its lifetime. For meaningful measurements, the
0038 increment in block count during a specific time interval should be
0039 calculated. For this command, read-only access to the device is
0040 sufficient.
0041
0042 Return Value
0043 ============
0044
0045 On success 0 is returned.
0046
0047 On error -1 is returned, and the ``errno`` variable is set
0048 appropriately.
0049
0050 Generic error codes are described at the
0051 :ref:`Generic Error Codes <gen-errors>` chapter.