DPDK  24.11.0-rc3
rte_eal_paging.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Dmitry Kozlyuk
3  */
4 
5 #include <stdint.h>
6 
7 #include <rte_compat.h>
8 
18  RTE_PROT_READ = 1 << 0,
19  RTE_PROT_WRITE = 1 << 1,
20  RTE_PROT_EXECUTE = 1 << 2
21 };
22 
26  RTE_MAP_SHARED = 1 << 0,
30  RTE_MAP_PRIVATE = 1 << 2,
38 };
39 
61 __rte_internal
62 void *
63 rte_mem_map(void *requested_addr, size_t size, int prot, int flags,
64  int fd, uint64_t offset);
65 
69 __rte_internal
70 int
71 rte_mem_unmap(void *virt, size_t size);
72 
79 __rte_internal
80 size_t
81 rte_mem_page_size(void);
82 
96 __rte_internal
97 int
98 rte_mem_lock(const void *virt, size_t size);
__rte_internal int rte_mem_unmap(void *virt, size_t size)
__rte_internal size_t rte_mem_page_size(void)
__rte_internal void * rte_mem_map(void *requested_addr, size_t size, int prot, int flags, int fd, uint64_t offset)
__rte_internal int rte_mem_lock(const void *virt, size_t size)
rte_map_flags
rte_mem_prot