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_
10 #include <rte_compat.h>
15 * This API allows access to EAL shared memory configuration through an API.
23 * Lock the internal EAL shared memory configuration for shared access.
26 rte_mcfg_mem_read_lock(void);
29 * Unlock the internal EAL shared memory configuration for shared access.
32 rte_mcfg_mem_read_unlock(void);
35 * Lock the internal EAL shared memory configuration for exclusive access.
38 rte_mcfg_mem_write_lock(void);
41 * Unlock the internal EAL shared memory configuration for exclusive access.
44 rte_mcfg_mem_write_unlock(void);
47 * Lock the internal EAL TAILQ list for shared access.
50 rte_mcfg_tailq_read_lock(void);
53 * Unlock the internal EAL TAILQ list for shared access.
56 rte_mcfg_tailq_read_unlock(void);
59 * Lock the internal EAL TAILQ list for exclusive access.
62 rte_mcfg_tailq_write_lock(void);
65 * Unlock the internal EAL TAILQ list for exclusive access.
68 rte_mcfg_tailq_write_unlock(void);
71 * Lock the internal EAL Mempool list for shared access.
74 rte_mcfg_mempool_read_lock(void);
77 * Unlock the internal EAL Mempool list for shared access.
80 rte_mcfg_mempool_read_unlock(void);
83 * Lock the internal EAL Mempool list for exclusive access.
86 rte_mcfg_mempool_write_lock(void);
89 * Unlock the internal EAL Mempool list for exclusive access.
92 rte_mcfg_mempool_write_unlock(void);
96 * @b EXPERIMENTAL: this API may change without prior notice
98 * Lock the internal EAL Timer Library lock for exclusive access.
102 rte_mcfg_timer_lock(void);
106 * @b EXPERIMENTAL: this API may change without prior notice
108 * Unlock the internal EAL Timer Library lock for exclusive access.
112 rte_mcfg_timer_unlock(void);
116 * @b EXPERIMENTAL: this API may change without prior notice
118 * If true, pages are put in single files (per memseg list),
119 * as opposed to creating a file per page.
123 rte_mcfg_get_single_file_segments(void);
129 #endif /*__RTE_EAL_MEMCONFIG_H_*/