kvtophys(D3DK) — MISC. REFERENCE MANUAL PAGES
NAME
kvtophys − convert kernel virtual address to physical address .IX \f4kvtophys\fP(D3DK)
SYNOPSIS
#include <sys/types.h>
#include <sys/ddi.h>
paddr_t kvtophys(caddr_t caddr);
ARGUMENTS
caddrKernel virtual address to translate.
DESCRIPTION
This function returns the physical address equivalent of the specified kernel virtual address. The same functionality is provided in the vtop(D3DK) function.
RETURN VALUE
kvtophys returns NULL if caddr is invalid; otherwise, a physical address is returned. CAUTION: If caddr is invalid, kvtophys could panic the system.
LEVEL
Base or Interrupt
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.
SEE ALSO
vtop(D3DK)
— DDI