'\"macro stdmacro
.if n .pH ddi_dki.kvtophys @(#)kvtophys	40.6 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} kvtophys D3D "3B2" "DDI" "\&"
.if \nX=1 .ds x} kvtophys D3D "3B2" "DDI"
.if \nX=2 .ds x} kvtophys D3D "" "\&"
.if \nX=3 .ds x} kvtophys "" "" "\&"
.TH \*(x}
.SH NAME
kvtophys \- convert kernel virtual address to physical address
.IX "\f4kvtophys\fP(D3D)"
.SH SYNOPSIS
.nf
.na
\f4#include <sys/types.h>
#include <sys/ddi.h>
.sp 0.5
paddr_t kvtophys(caddr_t \f2caddr\f4);\f1
.ad
.fi
.SH ARGUMENTS
.RS 0n 10
.IP "\f2caddr\f1" 10n
Kernel virtual address to translate.
.RE
.SH DESCRIPTION
This function returns the physical address equivalent of the specified kernel
virtual address.  The same functionality is provided in the
\f4vtop\f1(D3D) function.
.SH RETURN VALUE
\f4kvtophys\f1 returns \f4NULL\f1 if \f2caddr\f1 is invalid;
otherwise, a physical address is returned.
\f3CAUTION:\f1
If \f2caddr\f1 is invalid, \f4kvtophys\f1 could panic the system.
.SH LEVEL
Base or Interrupt
.SH SEE ALSO
.na
\f4vtop\f1(D3D)
.ad
