#include <rte_bitmap.h>
Go to the source code of this file.
DAO Bitmap helper
Definition in file dao_bitmap.h.
◆ 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_sz | Max 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
-
bmp | Bitmap handle |
index | Index 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
-
- Returns
- Index on success, negative on failure.