Query: btopr
OS: linux
Section: 9f
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
btopr(9F) Kernel Functions for Drivers btopr(9F)NAMEbtopr - convert size in bytes to size in pages (round up)SYNOPSIS#include <sys/ddi.h> unsigned long btopr(unsigned long numbytes);INTERFACE LEVELArchitecture independent level 1 (DDI/DKI).PARAMETERSnumbytes Number of bytes.DESCRIPTIONbtopr() returns the number of memory pages contained in the specified number of bytes memory, rounded up to the next whole page. For exam- ple, if the page size is 2048, then btopr(4096) returns 2, and btopr(4097) returns 3.RETURN VALUESThe return value is always the number of pages. There are no invalid input values, and therefore no error return values.CONTEXTbtopr() can be called from user or interrupt context.SEE ALSObtop(9F), ddi_btopr(9F), ptob(9F) Writing Device Drivers SunOS 5.10 11 Apr 1991 btopr(9F)
Related Man Pages |
---|
ptob(9f) - sunos |
btop(9f) - opensolaris |
btop(9f) - sunos |
ddi_btop(9f) - sunos |
ptob(9f) - linux |