Linux 4.8.3
[linux/fpc-iii.git] / Documentation / media / uapi / dvb / fe-read-uncorrected-blocks.rst
blob5c29c058dfdc115c7e60ea674de6c447dfce04de
1 .. -*- coding: utf-8; mode: rst -*-
3 .. _FE_READ_UNCORRECTED_BLOCKS:
5 **************************
6 FE_READ_UNCORRECTED_BLOCKS
7 **************************
9 Name
10 ====
12 FE_READ_UNCORRECTED_BLOCKS
15 Synopsis
16 ========
18 .. cpp:function:: int ioctl( int fd, int request =FE_READ_UNCORRECTED_BLOCKS, uint32_t *ublocks)
21 Arguments
22 =========
24 .. flat-table::
25     :header-rows:  0
26     :stub-columns: 0
29     -  .. row 1
31        -  int fd
33        -  File descriptor returned by a previous call to open().
35     -  .. row 2
37        -  int request
39        -  Equals
40           :ref:`FE_READ_UNCORRECTED_BLOCKS`
41           for this command.
43     -  .. row 3
45        -  uint32_t \*ublocks
47        -  The total number of uncorrected blocks seen by the driver so far.
50 Description
51 ===========
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
57 sufficient.
60 Return Value
61 ============
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.