kvtophys(D3X)

kvtophys - get physical address of buffer data

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     kvtophys - 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)