Data Accelerator Offload
Loading...
Searching...
No Matches
Functions
dao_bitmap.h File Reference
#include <rte_bitmap.h>

Go to the source code of this file.

Functions

struct rte_bitmap * dao_bmap_index_map_setup (uint32_t bmap_max_sz)
 
int dao_bmap_index_free (struct rte_bitmap *bmp, uint16_t index)
 
int dao_bmap_index_alloc (struct rte_bitmap *bmp)
 

Detailed Description

DAO Bitmap helper

Definition in file dao_bitmap.h.

Function Documentation

◆ dao_bmap_index_map_setup()

struct rte_bitmap * dao_bmap_index_map_setup ( uint32_t  bmap_max_sz)

Setting up a bitmap of the user required size

Parameters
bmap_max_szMax size of the bitmap
Returns
bitmap handle on success, NULL on failure.

◆ dao_bmap_index_free()

int dao_bmap_index_free ( struct rte_bitmap *  bmp,
uint16_t  index 
)

Return bitmap index

Parameters
bmpBitmap handle
indexIndex to be freed
Returns
0 on success, negative on failure.

◆ dao_bmap_index_alloc()

int dao_bmap_index_alloc ( struct rte_bitmap *  bmp)

Get a free bitmap index

Parameters
bmpBitmap handle
Returns
Index on success, negative on failure.