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

Function eal_mem_alloc_socket

dpdk/lib/eal/windows/eal_memory.c:315–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void *
316eal_mem_alloc_socket(size_t size, int socket_id)
317{
318 DWORD flags = MEM_RESERVE | MEM_COMMIT;
319 void *addr;
320
321 flags = MEM_RESERVE | MEM_COMMIT | MEM_LARGE_PAGES;
322 addr = VirtualAllocExNuma(GetCurrentProcess(), NULL, size, flags,
323 PAGE_READWRITE, eal_socket_numa_node(socket_id));
324 if (addr == NULL)
325 rte_errno = ENOMEM;
326 return addr;
327}
328
329void *
330eal_mem_commit(void *requested_addr, size_t size, int socket_id)

Callers 1

alloc_segFunction · 0.85

Calls 1

eal_socket_numa_nodeFunction · 0.85

Tested by

no test coverage detected