DPDK
24.11.0-rc1
lib
eal
include
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
17
enum
rte_mem_prot
{
18
RTE_PROT_READ
= 1 << 0,
19
RTE_PROT_WRITE
= 1 << 1,
20
RTE_PROT_EXECUTE
= 1 << 2
21
};
22
24
enum
rte_map_flags
{
26
RTE_MAP_SHARED
= 1 << 0,
28
RTE_MAP_ANONYMOUS
= 1 << 1,
30
RTE_MAP_PRIVATE
= 1 << 2,
37
RTE_MAP_FORCE_ADDRESS
= 1 << 3
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_MAP_ANONYMOUS
Definition:
rte_eal_paging.h:28
RTE_PROT_READ
Definition:
rte_eal_paging.h:18
RTE_PROT_WRITE
Definition:
rte_eal_paging.h:19
RTE_MAP_SHARED
Definition:
rte_eal_paging.h:26
rte_mem_unmap
__rte_internal int rte_mem_unmap(void *virt, size_t size)
RTE_MAP_PRIVATE
Definition:
rte_eal_paging.h:30
rte_mem_page_size
__rte_internal size_t rte_mem_page_size(void)
RTE_PROT_EXECUTE
Definition:
rte_eal_paging.h:20
rte_mem_map
__rte_internal void * rte_mem_map(void *requested_addr, size_t size, int prot, int flags, int fd, uint64_t offset)
rte_mem_lock
__rte_internal int rte_mem_lock(const void *virt, size_t size)
RTE_MAP_FORCE_ADDRESS
Definition:
rte_eal_paging.h:37
rte_map_flags
rte_map_flags
Definition:
rte_eal_paging.h:24
rte_mem_prot
rte_mem_prot
Definition:
rte_eal_paging.h:17
Generated by
1.8.13