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

Function get_anon_size

dpdk/lib/mempool/rte_mempool.c:625–639  ·  view source on GitHub ↗

return the memory size required for mempool objects in anonymous mem */

Source from the content-addressed store, hash-verified

623
624/* return the memory size required for mempool objects in anonymous mem */
625static ssize_t
626get_anon_size(const struct rte_mempool *mp)
627{
628 ssize_t size;
629 size_t pg_sz, pg_shift;
630 size_t min_chunk_size;
631 size_t align;
632
633 pg_sz = rte_mem_page_size();
634 pg_shift = rte_bsf32(pg_sz);
635 size = rte_mempool_ops_calc_mem_size(mp, mp->size, pg_shift,
636 &min_chunk_size, &align);
637
638 return size;
639}
640
641/* unmap a memory zone mapped by rte_mempool_populate_anon() */
642static void

Callers 2

Calls 3

rte_mem_page_sizeFunction · 0.50
rte_bsf32Function · 0.50

Tested by

no test coverage detected