cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

fe-read-uncorrected-blocks.rst (1102B)


      1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
      2.. c:namespace:: DTV.fe
      3
      4.. _FE_READ_UNCORRECTED_BLOCKS:
      5
      6**************************
      7FE_READ_UNCORRECTED_BLOCKS
      8**************************
      9
     10Name
     11====
     12
     13FE_READ_UNCORRECTED_BLOCKS
     14
     15.. attention:: This ioctl is deprecated.
     16
     17Synopsis
     18========
     19
     20.. c:macro:: FE_READ_UNCORRECTED_BLOCKS
     21
     22``int ioctl(int fd, FE_READ_UNCORRECTED_BLOCKS, uint32_t *ublocks)``
     23
     24Arguments
     25=========
     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
     33Description
     34===========
     35
     36This ioctl call returns the number of uncorrected blocks detected by the
     37device driver during its lifetime. For meaningful measurements, the
     38increment in block count during a specific time interval should be
     39calculated. For this command, read-only access to the device is
     40sufficient.
     41
     42Return Value
     43============
     44
     45On success 0 is returned.
     46
     47On error -1 is returned, and the ``errno`` variable is set
     48appropriately.
     49
     50Generic error codes are described at the
     51:ref:`Generic Error Codes <gen-errors>` chapter.