RTEMS 6.1-rc1
Data Fields
rtems_blkdev_stats Struct Reference

Block device statistics. More...

#include <diskdevs.h>

Data Fields

uint32_t read_hits
 Read hit count. More...
 
uint32_t read_misses
 Read miss count. More...
 
uint32_t read_ahead_transfers
 Read-ahead transfer count. More...
 
uint32_t read_ahead_peeks
 Read-ahead transfers caused by a peek.
 
uint32_t read_blocks
 Count of blocks transfered from the device.
 
uint32_t read_errors
 Read error count. More...
 
uint32_t write_transfers
 Write transfer count. More...
 
uint32_t write_blocks
 Count of blocks transfered to the device.
 
uint32_t write_errors
 Write error count. More...
 

Detailed Description

Block device statistics.

Integer overflows in the statistic counters may happen.

Field Documentation

◆ read_ahead_transfers

uint32_t rtems_blkdev_stats::read_ahead_transfers

Read-ahead transfer count.

Each read-ahead transfer may read multiple blocks. This counts all transfers (including peeks).

◆ read_errors

uint32_t rtems_blkdev_stats::read_errors

Read error count.

Error count of transfers issued by the read or read-ahead requests.

◆ read_hits

uint32_t rtems_blkdev_stats::read_hits

Read hit count.

A read hit occurs in the rtems_bdbuf_read() function in case the block is in the cached or modified state.

◆ read_misses

uint32_t rtems_blkdev_stats::read_misses

Read miss count.

A read miss occurs in the rtems_bdbuf_read() function in case the block is in the empty state and a read transfer must be initiated to read the data from the device.

◆ write_errors

uint32_t rtems_blkdev_stats::write_errors

Write error count.

Error count of transfers issued by write requests.

◆ write_transfers

uint32_t rtems_blkdev_stats::write_transfers

Write transfer count.

Each write transfer may write multiple blocks.


The documentation for this struct was generated from the following file: