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_
11 * This API allows access to EAL shared memory configuration through an API.
19 * Lock the internal EAL shared memory configuration for shared access.
22 rte_mcfg_mem_read_lock(void);
25 * Unlock the internal EAL shared memory configuration for shared access.
28 rte_mcfg_mem_read_unlock(void);
31 * Lock the internal EAL shared memory configuration for exclusive access.
34 rte_mcfg_mem_write_lock(void);
37 * Unlock the internal EAL shared memory configuration for exclusive access.
40 rte_mcfg_mem_write_unlock(void);
43 * Lock the internal EAL TAILQ list for shared access.
46 rte_mcfg_tailq_read_lock(void);
49 * Unlock the internal EAL TAILQ list for shared access.
52 rte_mcfg_tailq_read_unlock(void);
55 * Lock the internal EAL TAILQ list for exclusive access.
58 rte_mcfg_tailq_write_lock(void);
61 * Unlock the internal EAL TAILQ list for exclusive access.
64 rte_mcfg_tailq_write_unlock(void);
67 * Lock the internal EAL Mempool list for shared access.
70 rte_mcfg_mempool_read_lock(void);
73 * Unlock the internal EAL Mempool list for shared access.
76 rte_mcfg_mempool_read_unlock(void);
79 * Lock the internal EAL Mempool list for exclusive access.
82 rte_mcfg_mempool_write_lock(void);
85 * Unlock the internal EAL Mempool list for exclusive access.
88 rte_mcfg_mempool_write_unlock(void);
94 #endif /*__RTE_EAL_MEMCONFIG_H_*/