DPDK 25.03.0-rc0
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
38};
39
61__rte_internal
62void *
63rte_mem_map(void *requested_addr, size_t size, int prot, int flags,
64 int fd, uint64_t offset);
65
69__rte_internal
70int
71rte_mem_unmap(void *virt, size_t size);
72
79__rte_internal
80size_t
82
96__rte_internal
97int
98rte_mem_lock(const void *virt, size_t size);
rte_mem_prot
@ RTE_PROT_READ
@ RTE_PROT_WRITE
@ RTE_PROT_EXECUTE
__rte_internal int rte_mem_lock(const void *virt, size_t size)
__rte_internal size_t rte_mem_page_size(void)
rte_map_flags
@ RTE_MAP_PRIVATE
@ RTE_MAP_FORCE_ADDRESS
@ RTE_MAP_ANONYMOUS
@ RTE_MAP_SHARED
__rte_internal int rte_mem_unmap(void *virt, size_t size)
__rte_internal void * rte_mem_map(void *requested_addr, size_t size, int prot, int flags, int fd, uint64_t offset)