]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_memalloc.h
malloc: support callbacks on memory events
[dpdk.git] / lib / librte_eal / common / eal_memalloc.h
index c4a4abecaec1b6654ff6afe007de2559b4af601f..98b31da2cb7c348695d02bb6e114e7ada2876563 100644 (file)
@@ -51,4 +51,19 @@ bool
 eal_memalloc_is_contig(const struct rte_memseg_list *msl, void *start,
                size_t len);
 
+/* synchronize local memory map to primary process */
+int
+eal_memalloc_sync_with_primary(void);
+
+int
+eal_memalloc_mem_event_callback_register(const char *name,
+               rte_mem_event_callback_t clb);
+
+int
+eal_memalloc_mem_event_callback_unregister(const char *name);
+
+void
+eal_memalloc_mem_event_notify(enum rte_mem_event event, const void *start,
+               size_t len);
+
 #endif /* EAL_MEMALLOC_H */