1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
5 #ifndef _RTE_EAL_MEMCONFIG_H_
6 #define _RTE_EAL_MEMCONFIG_H_
8 #include <rte_compat.h>
13 * This API allows access to EAL shared memory configuration through an API.
21 * Lock the internal EAL shared memory configuration for shared access.
24 rte_mcfg_mem_read_lock(void);
27 * Unlock the internal EAL shared memory configuration for shared access.
30 rte_mcfg_mem_read_unlock(void);
33 * Lock the internal EAL shared memory configuration for exclusive access.
36 rte_mcfg_mem_write_lock(void);
39 * Unlock the internal EAL shared memory configuration for exclusive access.
42 rte_mcfg_mem_write_unlock(void);
45 * Lock the internal EAL TAILQ list for shared access.
48 rte_mcfg_tailq_read_lock(void);
51 * Unlock the internal EAL TAILQ list for shared access.
54 rte_mcfg_tailq_read_unlock(void);
57 * Lock the internal EAL TAILQ list for exclusive access.
60 rte_mcfg_tailq_write_lock(void);
63 * Unlock the internal EAL TAILQ list for exclusive access.
66 rte_mcfg_tailq_write_unlock(void);
69 * Lock the internal EAL Mempool list for shared access.
72 rte_mcfg_mempool_read_lock(void);
75 * Unlock the internal EAL Mempool list for shared access.
78 rte_mcfg_mempool_read_unlock(void);
81 * Lock the internal EAL Mempool list for exclusive access.
84 rte_mcfg_mempool_write_lock(void);
87 * Unlock the internal EAL Mempool list for exclusive access.
90 rte_mcfg_mempool_write_unlock(void);
94 * @b EXPERIMENTAL: this API may change without prior notice
96 * Lock the internal EAL Timer Library lock for exclusive access.
100 rte_mcfg_timer_lock(void);
104 * @b EXPERIMENTAL: this API may change without prior notice
106 * Unlock the internal EAL Timer Library lock for exclusive access.
110 rte_mcfg_timer_unlock(void);
116 #endif /*__RTE_EAL_MEMCONFIG_H_*/