| 313 | } |
| 314 | |
| 315 | void * |
| 316 | eal_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 | |
| 329 | void * |
| 330 | eal_mem_commit(void *requested_addr, size_t size, int socket_id) |
no test coverage detected