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