btopr(9f) opensolaris man page | unix.com

Man Page: btopr

Operating Environment: opensolaris

Section: 9f

btopr(9F)						   Kernel Functions for Drivers 						 btopr(9F)

NAME
btopr - convert size in bytes to size in pages (round up)
SYNOPSIS
#include <sys/ddi.h> unsigned long btopr(unsigned long numbytes);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
numbytes Number of bytes.
DESCRIPTION
The btopr() function returns the number of memory pages contained in the specified number of bytes memory, rounded up to the next whole page. For example, if the page size is 2048, then btopr(4096) returns 2, and btopr(4097) returns 3.
RETURN VALUES
The return value is always the number of pages. There are no invalid input values, and therefore no error return values.
CONTEXT
The btopr() function can be called from user, interrupt, or kernel context.
SEE ALSO
btop(9F), ddi_btopr(9F), ptob(9F) Writing Device Drivers SunOS 5.11 16 Jan 2006 btopr(9F)
Related Man Pages
btopr(9f) - opensolaris
ptob(9f) - opensolaris
ddi_ptob(9f) - opensolaris
ddi_btop(9f) - sunos
ddi_ptob(9f) - sunos
Similar Topics in the Unix Linux Community
Study UNIX Kernel
Free Sun Blade 2k, Ultra 2, Ross Hyperstation 30, cards, memory- Baltimore, MD
Identify problem with while getopts
%memused is high
Solaris 10 - password complexity not working