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

Function rte_bitmap_get

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

* Bitmap bit get * * @param bmp * Handle to bitmap instance * @param pos * Bit position * @return * 0 when bit is cleared, non-zero when bit is set */

Source from the content-addressed store, hash-verified

342 * 0 when bit is cleared, non-zero when bit is set
343 */
344static inline uint64_t
345rte_bitmap_get(struct rte_bitmap *bmp, uint32_t pos)
346{
347 uint64_t *slab2;
348 uint32_t index2, offset2;
349
350 index2 = pos >> RTE_BITMAP_SLAB_BIT_SIZE_LOG2;
351 offset2 = pos & RTE_BITMAP_SLAB_BIT_MASK;
352 slab2 = bmp->array2 + index2;
353 return (*slab2) & (1llu << offset2);
354}
355
356/**
357 * Bitmap bit set

Callers 15

pdcp_cnt_bitmap_is_setFunction · 0.85
mr_find_next_chunkFunction · 0.85
mlx5_ipool_freeFunction · 0.85
mlx5_ipool_getFunction · 0.85
bitmap_test_bitFunction · 0.85
cxgbe_is_filter_setFunction · 0.85
cxgbe_set_ftidFunction · 0.85
bnxt_prod_ag_mbufFunction · 0.85

Calls

no outgoing calls

Tested by 1