1 .. -*- coding: utf-8; mode: rst -*-
3 .. _FE_READ_UNCORRECTED_BLOCKS:
5 **************************
6 FE_READ_UNCORRECTED_BLOCKS
7 **************************
11 This ioctl call returns the number of uncorrected blocks detected by the
12 device driver during its lifetime. For meaningful measurements, the
13 increment in block count during a specific time interval should be
14 calculated. For this command, read-only access to the device is
19 int ioctl( int fd, int request =
20 :ref:`FE_READ_UNCORRECTED_BLOCKS`,
36 - File descriptor returned by a previous call to open().
43 :ref:`FE_READ_UNCORRECTED_BLOCKS`
50 - The total number of uncorrected blocks seen by the driver so far.
55 On success 0 is returned, on error -1 and the ``errno`` variable is set
56 appropriately. The generic error codes are described at the
57 :ref:`Generic Error Codes <gen-errors>` chapter.
60 .. ------------------------------------------------------------------------------
61 .. This file was automatically converted from DocBook-XML with the dbxml
62 .. library (https://github.com/return42/sphkerneldoc). The origin XML comes
63 .. from the linux kernel, refer to:
65 .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
66 .. ------------------------------------------------------------------------------