X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Fmalloc_elem.h;h=7331af9ca3aeddbc19f19d86a764d27ad5edaf6b;hb=0a01574db43cb8ed62aa84484a7d3ddca1e74fa4;hp=620dd44c87f3a4376c19dc1a7146cdd41877ebf9;hpb=66cc45e293ed67d4e83fb8a1174089c58610a8e1;p=dpdk.git diff --git a/lib/librte_eal/common/malloc_elem.h b/lib/librte_eal/common/malloc_elem.h index 620dd44c87..7331af9ca3 100644 --- a/lib/librte_eal/common/malloc_elem.h +++ b/lib/librte_eal/common/malloc_elem.h @@ -9,6 +9,8 @@ #include +#define MIN_DATA_SIZE (RTE_CACHE_LINE_SIZE) + /* dummy definition of struct so we can use pointers to it in malloc_elem struct */ struct malloc_heap; @@ -153,6 +155,9 @@ malloc_elem_join_adjacent_free(struct malloc_elem *elem); int malloc_elem_resize(struct malloc_elem *elem, size_t size); +void +malloc_elem_hide_region(struct malloc_elem *elem, void *start, size_t len); + void malloc_elem_free_list_remove(struct malloc_elem *elem);