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

Function pagesz_flags

dpdk/lib/eal/linux/eal_memalloc.c:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202static int
203pagesz_flags(uint64_t page_sz)
204{
205 /* as per mmap() manpage, all page sizes are log2 of page size
206 * shifted by MAP_HUGE_SHIFT
207 */
208 int log2 = rte_log2_u64(page_sz);
209 return log2 << RTE_MAP_HUGE_SHIFT;
210}
211
212/* returns 1 on successful lock, 0 on unsuccessful lock, -1 on error */
213static int lock(int fd, int type)

Callers 3

get_seg_memfdFunction · 0.70
alloc_segFunction · 0.70
test_memfd_createFunction · 0.70

Calls 1

rte_log2_u64Function · 0.50

Tested by 1

test_memfd_createFunction · 0.56