diff options
author | Damjan Marion <damarion@cisco.com> | 2018-10-19 12:54:42 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-10-19 12:26:50 +0000 |
commit | 1636b1629339c8235e344e7a95d88ecede642cd5 (patch) | |
tree | 8359c97957a0151e411c7b746d8284312a219ce7 /src/vppinfra/mem.h | |
parent | da41d729b9339528b6c9bd1e859792303d15eb78 (diff) |
vppinfra: use memfd_create for hugepage mounts if supported
Starting with kernel 4.14 hugepage fd can be retrieved with
memfd_systemcall
Change-Id: I0f3bd6d0a7757ffe7b98e83763502013ac763ecb
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/mem.h')
-rw-r--r-- | src/vppinfra/mem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h index fa7de204fbb..9cc62ed7592 100644 --- a/src/vppinfra/mem.h +++ b/src/vppinfra/mem.h @@ -386,6 +386,7 @@ typedef struct uword requested_va; /**< Request fixed position mapping */ } clib_mem_vm_alloc_t; +clib_error_t *clib_mem_create_hugetlb_fd (char *name, int *fdp); clib_error_t *clib_mem_vm_ext_alloc (clib_mem_vm_alloc_t * a); void clib_mem_vm_ext_free (clib_mem_vm_alloc_t * a); u64 clib_mem_vm_get_page_size (int fd); |