X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Feal_memalloc.h;h=e953cd84e6ce4e4f7c92169c1ee693c1563fdc25;hb=6cfe84fbe7b166d272797c859966e387ef078e44;hp=a46c69c7206070159f378cf3b6dfcf56fa7a8759;hpb=1009ba1704f9cffd47d46fb8eda8671ef30e966d;p=dpdk.git diff --git a/lib/librte_eal/common/eal_memalloc.h b/lib/librte_eal/common/eal_memalloc.h index a46c69c720..e953cd84e6 100644 --- a/lib/librte_eal/common/eal_memalloc.h +++ b/lib/librte_eal/common/eal_memalloc.h @@ -8,7 +8,6 @@ #include #include -#include /* * Allocate segment of specified page size. @@ -76,12 +75,21 @@ eal_memalloc_mem_alloc_validator_unregister(const char *name, int socket_id); int eal_memalloc_mem_alloc_validate(int socket_id, size_t new_len); +/* returns fd or -errno */ int eal_memalloc_get_seg_fd(int list_idx, int seg_idx); +/* returns 0 or -errno */ int eal_memalloc_set_seg_fd(int list_idx, int seg_idx, int fd); +/* returns 0 or -errno */ +int +eal_memalloc_set_seg_list_fd(int list_idx, int fd); + +int +eal_memalloc_get_seg_fd_offset(int list_idx, int seg_idx, size_t *offset); + int eal_memalloc_init(void);