L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
+ Collaboration diagram for Internal:

Data Structures

struct  l4shmc_ringbuf_head_t
 Head field of a ring buffer. More...
 
struct  l4shmc_ringbuf_t
 Ring buffer. More...
 

Macros

#define L4SHMC_RINGBUF_HEAD(ringbuf)   ((l4shmc_ringbuf_head_t*)((ringbuf)->_addr))
 Get ring buffer head pointer.
 
#define L4SHMC_RINGBUF_DATA(ringbuf)   (L4SHMC_RINGBUF_HEAD(ringbuf)->data)
 Get ring buffer data pointer.
 
#define L4SHMC_RINGBUF_DATA_SIZE(ringbuf)   ((ringbuf)->_size - sizeof(l4shmc_ringbuf_head_t))
 Get size of data area.
 

Detailed Description

Macro Definition Documentation

◆ L4SHMC_RINGBUF_DATA

#define L4SHMC_RINGBUF_DATA (   ringbuf)    (L4SHMC_RINGBUF_HEAD(ringbuf)->data)

Get ring buffer data pointer.

Parameters
ringbufl4shmc_ringbuf_t struct

Definition at line 113 of file ringbuf.h.

◆ L4SHMC_RINGBUF_DATA_SIZE

#define L4SHMC_RINGBUF_DATA_SIZE (   ringbuf)    ((ringbuf)->_size - sizeof(l4shmc_ringbuf_head_t))

Get size of data area.

Parameters
ringbufl4shmc_ringbuf_t struct

Definition at line 122 of file ringbuf.h.

◆ L4SHMC_RINGBUF_HEAD

#define L4SHMC_RINGBUF_HEAD (   ringbuf)    ((l4shmc_ringbuf_head_t*)((ringbuf)->_addr))

Get ring buffer head pointer.

Parameters
ringbufl4shmc_ringbuf_t struct

Definition at line 104 of file ringbuf.h.