1 .. -*- coding: utf-8; mode: rst -*-
3 .. _FE_READ_UNCORRECTED_BLOCKS:
5 **************************
6 FE_READ_UNCORRECTED_BLOCKS
7 **************************
12 FE_READ_UNCORRECTED_BLOCKS
18 .. cpp:function:: int ioctl( int fd, int request =FE_READ_UNCORRECTED_BLOCKS, uint32_t *ublocks)
33 - File descriptor returned by a previous call to open().
40 :ref:`FE_READ_UNCORRECTED_BLOCKS`
47 - The total number of uncorrected blocks seen by the driver so far.
53 This ioctl call returns the number of uncorrected blocks detected by the
54 device driver during its lifetime. For meaningful measurements, the
55 increment in block count during a specific time interval should be
56 calculated. For this command, read-only access to the device is
63 On success 0 is returned, on error -1 and the ``errno`` variable is set
64 appropriately. The generic error codes are described at the
65 :ref:`Generic Error Codes <gen-errors>` chapter.