Libtrap: Internal development docs  0.11.7
Data Fields
trap_buffer_s Struct Reference

#include <trap_buffer.h>

Collaboration diagram for trap_buffer_s:
Collaboration graph
[legend]

Data Fields

char * mem
 
tb_block_tcur_wr_block
 
tb_block_t ** blocks
 
uint16_t cur_wr_block_idx
 
tb_block_tcur_rd_block
 
uint16_t cur_rd_block_idx
 
uint32_t blocksize
 
uint16_t nblocks
 
pthread_mutex_t lock
 

Detailed Description

Definition at line 100 of file trap_buffer.h.

Field Documentation

◆ blocks

tb_block_t** trap_buffer_s::blocks

Array of pointers to blocks.

Definition at line 114 of file trap_buffer.h.

◆ blocksize

uint32_t trap_buffer_s::blocksize

Maximal size of tb_block_data_s element (containing data + 32b header).

Definition at line 133 of file trap_buffer.h.

◆ cur_rd_block

tb_block_t* trap_buffer_s::cur_rd_block

Pointer to current block

Definition at line 123 of file trap_buffer.h.

◆ cur_rd_block_idx

uint16_t trap_buffer_s::cur_rd_block_idx

Index of current block to spare computation when moving to next block

Definition at line 128 of file trap_buffer.h.

◆ cur_wr_block

tb_block_t* trap_buffer_s::cur_wr_block

Pointer to current block

Definition at line 109 of file trap_buffer.h.

◆ cur_wr_block_idx

uint16_t trap_buffer_s::cur_wr_block_idx

Index of current block to spare computation when moving to next block

Definition at line 118 of file trap_buffer.h.

◆ lock

pthread_mutex_t trap_buffer_s::lock

Lock the buffer

Definition at line 143 of file trap_buffer.h.

◆ mem

char* trap_buffer_s::mem

Pointer to internal memory containing the whole ring buffer.

Definition at line 104 of file trap_buffer.h.

◆ nblocks

uint16_t trap_buffer_s::nblocks

Number of blocks in the buffer.

Definition at line 138 of file trap_buffer.h.


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