vtop(9r) vtop(9r)
NAME
vtop - General: Converts any virtual address to a physical address
SYNOPSIS
vm_offset_t vtop(
struct proc *proc_p,
vm_offset_t virt_addr );
ARGUMENTS
Specifies a pointer to a proc structure. The vtop routine uses the proc structure pointer to obtain the pmap. Specifies the virtual
address that vtop converts to a physical address.
DESCRIPTION
The vtop routine converts a specified virtual address to a physical address.
CAUTIONS
The vtop routine panics and displays the following message on the console terminal if the proc structure pointer you pass is NULL and the
virtual address is in user space:
vtop: user address passed with null proc pointer
RETURN VALUES
Upon successful completion, vtop returns the physical address associated with the specified virtual address.
vtop(9r)