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

Function eal_memalloc_alloc_seg

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

Source from the content-addressed store, hash-verified

1076}
1077
1078struct rte_memseg *
1079eal_memalloc_alloc_seg(size_t page_sz, int socket)
1080{
1081 struct rte_memseg *ms;
1082 if (eal_memalloc_alloc_seg_bulk(&ms, 1, page_sz, socket, true) < 0)
1083 return NULL;
1084 /* return pointer to newly allocated memseg */
1085 return ms;
1086}
1087
1088int
1089eal_memalloc_free_seg_bulk(struct rte_memseg **ms, int n_segs)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected