'\"macro stdmacro
.if n .pH ddi_dki.ptob @(#)ptob	40.5 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} ptob D3DK "" "DDI/DKI" "\&"
.if \nX=1 .ds x} ptob D3DK "" "DDI/DKI"
.if \nX=2 .ds x} ptob D3DK "" "\&"
.if \nX=3 .ds x} ptob "" "" "\&"
.TH \*(x}
.IX "\f4ptob\fP(D3DK)"
.SH NAME
\f4ptob\f1 \- convert size in pages to size in bytes
.SH SYNOPSIS
.nf
.na
\f4#include <sys/ddi.h>
.sp 0.5
unsigned long ptob(unsigned long \f2numpages\f4);\f1
.ad
.fi
.SH ARGUMENT
.RS 0n 10
.IP "\f2numpages\f1" 10n
Size in number of pages to convert to size in bytes.
.RE
.SH DESCRIPTION
This function returns the number of bytes that are contained
in the specified number of pages.
For example, if the page size is 2048,
then \f4ptob(2)\f1 returns \f44096\f1.
\f4ptob(0)\f1 returns \f40\f1.
.SH RETURN VALUE
The return value is always the number of bytes in the specified number
of pages. There are no invalid input values, and no checking will be
performed for overflow in the case of a page count whose corresponding
byte count cannot be represented by an \f4unsigned long\f1.
Rather, the higher order bits will be ignored.
.SH LEVEL
Base or interrupt
.SH SEE ALSO
.na
\f4btop\f1(D3DK),
\f4btopr\f1(D3DK)
.ad
