libnvme_alloc_huge-libnvme32
Allocate a huge page-backed memory buffer
Usage
void * libnvme_alloc_huge (size_t len , struct libnvme_mem_huge *mh );
Arguments
len
|
Size of the memory buffer in bytes |
|---|---|
mh
|
Huge memory allocation descriptor |
Overview
Attempts to allocate a memory buffer backed by huge pages. Allocation details are stored in mh and must later be released using libnvme_free_huge.
Return
pointer to the allocated memory buffer on success, or NULL on failure.