RTEMS: rtems_blkdev_stats Struct Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Data Fields
rtems_blkdev_stats Struct Reference
Device Drivers » Block Device Library » Block Device Disk Management

Block device statistics. More...

`#include <diskdevs.h>`

## Data Fields
uint32_t | read_hits
| Read hit count.
uint32_t | read_misses
| Read miss count.
uint32_t | read_ahead_transfers
| Read-ahead transfer count.
uint32_t | read_blocks
| Count of blocks transfered from the device.
uint32_t | read_errors
| Read error count.
uint32_t | write_transfers
| Write transfer count.
uint32_t | write_blocks
| Count of blocks transfered to the device.
uint32_t | write_errors
| Write error count.

## 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.

## ◆ 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:

- cpukit/include/rtems/diskdevs.h