]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_eal_memconfig.h
mem: add API to lock/unlock memory hotplug
[dpdk.git] / lib / librte_eal / common / include / rte_eal_memconfig.h
index 84aabe36c29fdae3b4bb33b3f8fab5fce0f8fbcb..a554518ef50f21b09b2e9324c426c6bf5c7622ed 100644 (file)
@@ -100,6 +100,30 @@ rte_eal_mcfg_wait_complete(struct rte_mem_config* mcfg)
                rte_pause();
 }
 
+/**
+ * Lock the internal EAL shared memory configuration for shared access.
+ */
+void
+rte_mcfg_mem_read_lock(void);
+
+/**
+ * Unlock the internal EAL shared memory configuration for shared access.
+ */
+void
+rte_mcfg_mem_read_unlock(void);
+
+/**
+ * Lock the internal EAL shared memory configuration for exclusive access.
+ */
+void
+rte_mcfg_mem_write_lock(void);
+
+/**
+ * Unlock the internal EAL shared memory configuration for exclusive access.
+ */
+void
+rte_mcfg_mem_write_unlock(void);
+
 #ifdef __cplusplus
 }
 #endif