52 lines · plain
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later2.. c:namespace:: DTV.fe3 4.. _FE_READ_UNCORRECTED_BLOCKS:5 6**************************7FE_READ_UNCORRECTED_BLOCKS8**************************9 10Name11====12 13FE_READ_UNCORRECTED_BLOCKS14 15.. attention:: This ioctl is deprecated.16 17Synopsis18========19 20.. c:macro:: FE_READ_UNCORRECTED_BLOCKS21 22``int ioctl(int fd, FE_READ_UNCORRECTED_BLOCKS, uint32_t *ublocks)``23 24Arguments25=========26 27``fd``28 File descriptor returned by :c:func:`open()`.29 30``ublocks``31 The total number of uncorrected blocks seen by the driver so far.32 33Description34===========35 36This ioctl call returns the number of uncorrected blocks detected by the37device driver during its lifetime. For meaningful measurements, the38increment in block count during a specific time interval should be39calculated. For this command, read-only access to the device is40sufficient.41 42Return Value43============44 45On success 0 is returned.46 47On error -1 is returned, and the ``errno`` variable is set48appropriately.49 50Generic error codes are described at the51:ref:`Generic Error Codes <gen-errors>` chapter.52