1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.fe
4 .. _FE_READ_UNCORRECTED_BLOCKS:
6 **************************
7 FE_READ_UNCORRECTED_BLOCKS
8 **************************
13 FE_READ_UNCORRECTED_BLOCKS
15 .. attention:: This ioctl is deprecated.
20 .. c:macro:: FE_READ_UNCORRECTED_BLOCKS
22 ``int ioctl(int fd, FE_READ_UNCORRECTED_BLOCKS, uint32_t *ublocks)``
28 File descriptor returned by :c:func:`open()`.
31 The total number of uncorrected blocks seen by the driver so far.
36 This ioctl call returns the number of uncorrected blocks detected by the
37 device driver during its lifetime. For meaningful measurements, the
38 increment in block count during a specific time interval should be
39 calculated. For this command, read-only access to the device is
45 On success 0 is returned.
47 On error -1 is returned, and the ``errno`` variable is set
50 Generic error codes are described at the
51 :ref:`Generic Error Codes <gen-errors>` chapter.