src/dpdk/lib/librte_eal/common/eal_common_memory.c
int
rte_mem_lock_page(const void *virt)
{
	uintptr_t virtual = (uintptr_t)virt;
	size_t page_size = rte_mem_page_size();
	uintptr_t aligned = RTE_PTR_ALIGN_FLOOR(virtual, page_size);
	return rte_mem_lock((void *)aligned, page_size);
}
/* Lock page in physical memory and prevent from swapping. */
Lock page in physical memory and prevent from swapping.
Lock page in physical memory and prevent from swapping .
int
rte_mem_lock_page(const void *virt)
{
	uintptr_t virtual = (uintptr_t)virt;
	size_t page_size = rte_mem_page_size();
	uintptr_t aligned = RTE_PTR_ALIGN_FLOOR(virtual, page_size);
	return rte_mem_lock((void *)aligned, page_size);
}
int rte_mem_lock_page ( const void * virt ) { uintptr_t virtual = ( uintptr_t ) virt ; size_t page_size = rte_mem_page_size ( ) ; uintptr_t aligned = RTE_PTR_ALIGN_FLOOR ( virtual , page_size ) ; return rte_mem_lock ( ( void * ) aligned , page_size ) ; }
Lock page in physical memory and prevent from swapping.
Lock page in physical memory and prevent from swapping .