RTEMS CPU Kit with SuperCore  4.10.99.0
Data Structures | Data Fields
rtems_bdbuf_buffer Struct Reference

To manage buffers we using buffer descriptors (BD). More...

#include <bdbuf.h>

Collaboration diagram for rtems_bdbuf_buffer:
Collaboration graph
[legend]

Data Structures

struct  rtems_bdbuf_avl_node

Data Fields

rtems_chain_node link
 Link the BD onto a number of lists.
struct
rtems_bdbuf_buffer::rtems_bdbuf_avl_node 
avl
rtems_disk_devicedd
 disk device
rtems_blkdev_bnum block
 block number on the device
unsigned char * buffer
 Pointer to the buffer memory area.
rtems_bdbuf_buf_state state
 State of the buffer.
uint32_t waiters
 The number of threads waiting on this buffer.
rtems_bdbuf_groupgroup
 Pointer to the group of BDs this BD is part of.
uint32_t hold_timer
 Timer to indicate how long a buffer has been held in the cache modified.
int references
 Allow reference counting by owner.
void * user
 User data.

Detailed Description

To manage buffers we using buffer descriptors (BD).

A BD holds a buffer plus a range of other information related to managing the buffer in the cache. To speed-up buffer lookup descriptors are organized in AVL-Tree. The fields 'dd' and 'block' are search keys.


Field Documentation

Pointer to the group of BDs this BD is part of.

Timer to indicate how long a buffer has been held in the cache modified.

Link the BD onto a number of lists.

Allow reference counting by owner.

State of the buffer.

User data.

The number of threads waiting on this buffer.


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