MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_bitmap_get_memory_footprint

Function rte_bitmap_get_memory_footprint

dpdk/lib/eal/include/rte_bitmap.h:147–155  ·  view source on GitHub ↗

* Bitmap memory footprint calculation * * @param n_bits * Number of bits in the bitmap * @return * Bitmap memory footprint measured in bytes on success, 0 on error */

Source from the content-addressed store, hash-verified

145 * Bitmap memory footprint measured in bytes on success, 0 on error
146 */
147static inline uint32_t
148rte_bitmap_get_memory_footprint(uint32_t n_bits) {
149 /* Check input arguments */
150 if (n_bits == 0) {
151 return 0;
152 }
153
154 return __rte_bitmap_get_memory_footprint(n_bits, NULL, NULL, NULL, NULL);
155}
156
157/**
158 * Bitmap initialization

Callers 15

rte_sched_subport_configFunction · 0.85
bcmfs_qp_setupFunction · 0.85
mlx4_mr_create_primaryFunction · 0.85
cpfl_fxp_mod_initFunction · 0.85
mlx5_ipool_growFunction · 0.85
mlx5_ipool_flush_cacheFunction · 0.85
bitmap_alloc0Function · 0.85
tid_initFunction · 0.85
bond_allocFunction · 0.85

Calls 1

Tested by 2

test_bitmap_all_clearFunction · 0.68
test_bitmap_all_setFunction · 0.68