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);
95 * Lock the internal EAL Timer Library lock for exclusive access.
98 rte_mcfg_timer_lock(void);
101 * Unlock the internal EAL Timer Library lock for exclusive access.
104 rte_mcfg_timer_unlock(void);
107 * If true, pages are put in single files (per memseg list),
108 * as opposed to creating a file per page.
111 rte_mcfg_get_single_file_segments(void);
117 #endif /*__RTE_EAL_MEMCONFIG_H_*/