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

Function pdcp_cnt_bitmap_create

dpdk/lib/pdcp/pdcp_cnt.c:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22int
23pdcp_cnt_bitmap_create(struct entity_priv_dl_part *dl, uint32_t nb_elem,
24 void *bitmap_mem, uint32_t mem_size)
25{
26 dl->bitmap.bmp = rte_bitmap_init(nb_elem, bitmap_mem, mem_size);
27 if (dl->bitmap.bmp == NULL)
28 return -EINVAL;
29
30 dl->bitmap.size = nb_elem;
31
32 return 0;
33}
34
35void
36pdcp_cnt_bitmap_set(struct pdcp_cnt_bitmap bitmap, uint32_t count)

Callers 1

pdcp_dl_establishFunction · 0.85

Calls 1

rte_bitmap_initFunction · 0.85

Tested by

no test coverage detected