btopr man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

BTOPR(9F)							     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 con‐
       text.

SEE ALSO
       btop(9F), ddi_btopr(9F), ptob(9F)

       Writing Device Drivers

				 Jan 16, 2006			     BTOPR(9F)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net