kvtophys(D3X)kvtophys(D3X)NAMEkvtophys - get physical address of buffer data
SYNOPSIS
#include <sys/types.h>
#include <sys/ddi.h>
paddr_t kvtophys(void *kv);
Arguments
kv Pointer to kernel virtual address.
DESCRIPTION
This function returns the physical address equivalent of the specified
kernel virtual address. Mappings returned are only valid up to a page
boundary.
Return Values
kvtophys returns NULL if kv is invalid; otherwise, a physical address is
returned.
Caution
If kv is invalid, referencing the value returned by 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
getpagesize(2)
Page 1