TwiceAsNice  2019-02-18
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Typedefs | Functions | Variables
util_bm.c File Reference
#include <stdio.h>
#include "util_bm.h"
#include "util_format.h"
#include "util_label.h"
#include "util_sem.h"
#include "util_time.h"
Include dependency graph for util_bm.c:

Classes

struct  _local_buf_t
 
struct  local_list_t
 
struct  master_t
 

Typedefs

typedef struct _local_buf_t local_buf_t
 

Functions

static void * _buf_alloc (void *dev, unsigned char index, size_t size)
 
static int _buf_free (void *dev, unsigned char index, void *vp)
 
static local_buf_t_buf_to_lb (void *vp, local_list_t *ll)
 
static local_buf_t_lb_alloc (void)
 
static void _lb_free (local_buf_t *lb)
 
static local_buf_t_lb_from_bm (buf_man_t *bm, local_list_t **ll)
 
static void _lb_init (local_buf_t *lb, void *dev, unsigned char index, size_t size, void *vp)
 
static local_buf_t_lb_create (void *dev, unsigned char index, size_t size)
 
static int _lb_destroy (local_buf_t *lb)
 
static void _lb_remove (local_list_t *ll, local_buf_t *lb)
 
static int _ll_buffer_get (local_list_t *ll, local_buf_t **lb)
 
static void _ll_buffer_put (local_list_t *ll, local_buf_t *lb)
 
static int _ll_free_all (local_list_t *ll)
 
static void _ll_stats (local_list_t *ll, int threads)
 
static int _bm_request (buf_man_t *bm, local_list_t *ll, local_buf_t **lb)
 
int buf_man_free_all (void)
 
int buf_man_init (void)
 
int buf_man_release_buffer (buf_man_t *bm)
 
int buf_man_request_data (buf_man_t *bm)
 
int buf_man_request_empty (buf_man_t *bm)
 
int buf_man_setup (void *dev, unsigned char qty, size_t size)
 
int buf_man_stop (int stop, int *last)
 
int buf_man_stats (void)
 

Variables

static master_t _master
 

Typedef Documentation

◆ local_buf_t

typedef struct _local_buf_t local_buf_t

Function Documentation

◆ _bm_request()

static int _bm_request ( buf_man_t bm,
local_list_t ll,
local_buf_t **  lb 
)
static

◆ _buf_alloc()

static void* _buf_alloc ( void *  dev,
unsigned char  index,
size_t  size 
)
static

◆ _buf_free()

static int _buf_free ( void *  dev,
unsigned char  index,
void *  vp 
)
static

◆ _buf_to_lb()

static local_buf_t* _buf_to_lb ( void *  vp,
local_list_t ll 
)
static

◆ _lb_alloc()

static local_buf_t* _lb_alloc ( void  )
static

◆ _lb_create()

static local_buf_t* _lb_create ( void *  dev,
unsigned char  index,
size_t  size 
)
static

◆ _lb_destroy()

static int _lb_destroy ( local_buf_t lb)
static

◆ _lb_free()

static void _lb_free ( local_buf_t lb)
static

◆ _lb_from_bm()

static local_buf_t* _lb_from_bm ( buf_man_t bm,
local_list_t **  ll 
)
static

◆ _lb_init()

static void _lb_init ( local_buf_t lb,
void *  dev,
unsigned char  index,
size_t  size,
void *  vp 
)
static

◆ _lb_remove()

static void _lb_remove ( local_list_t ll,
local_buf_t lb 
)
static

◆ _ll_buffer_get()

static int _ll_buffer_get ( local_list_t ll,
local_buf_t **  lb 
)
static

◆ _ll_buffer_put()

static void _ll_buffer_put ( local_list_t ll,
local_buf_t lb 
)
static

◆ _ll_free_all()

static int _ll_free_all ( local_list_t ll)
static

◆ _ll_stats()

static void _ll_stats ( local_list_t ll,
int  threads 
)
static

◆ buf_man_free_all()

int buf_man_free_all ( void  )

◆ buf_man_init()

int buf_man_init ( void  )

◆ buf_man_release_buffer()

int buf_man_release_buffer ( buf_man_t bm)

◆ buf_man_request_data()

int buf_man_request_data ( buf_man_t bm)

◆ buf_man_request_empty()

int buf_man_request_empty ( buf_man_t bm)

◆ buf_man_setup()

int buf_man_setup ( void *  dev,
unsigned char  qty,
size_t  size 
)

◆ buf_man_stats()

int buf_man_stats ( void  )

◆ buf_man_stop()

int buf_man_stop ( int  stop,
int *  last 
)

Variable Documentation

◆ _master

master_t _master
static