]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/malloc_elem.h
eal: introduce rte version of fls
[dpdk.git] / lib / librte_eal / common / malloc_elem.h
index 620dd44c87f3a4376c19dc1a7146cdd41877ebf9..e2bda4c02755bf52624ae150da3a6644d2d716e4 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <rte_eal_memconfig.h>
 
+#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);
 
@@ -174,4 +179,10 @@ malloc_elem_free_list_index(size_t size);
 void
 malloc_elem_free_list_insert(struct malloc_elem *elem);
 
+/*
+ * Find biggest IOVA-contiguous zone within an element with specified alignment.
+ */
+size_t
+malloc_elem_find_max_iova_contig(struct malloc_elem *elem, size_t align);
+
 #endif /* MALLOC_ELEM_H_ */