btop man page on SunOS

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

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

NAME
       btop - convert size in bytes to size in pages (round down)

SYNOPSIS
       #include <sys/ddi.h>

       unsigned long btop(unsigned long numbytes);

INTERFACE LEVEL
       Architecture independent level 1 (DDI/DKI).

PARAMETERS
       numbytes	       Number of bytes.

DESCRIPTION
       The  btop()  function  returns the number of memory pages that are con‐
       tained in the specified number of bytes, with downward rounding in  the
       case  that  the	byte count is not a page multiple. For example, if the
       page size is 2048, then btop(4096) returns 2, and btop(4097) returns  2
       as well. btop(0) returns 0.

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 btop() function can be called from user, interrupt, or kernel  con‐
       text.

SEE ALSO
       btopr(9F), ddi_btop(9F), ptob(9F)

       Writing Device Drivers

SunOS 5.10			  16 Jan 2006			      btop(9F)
[top]

List of man pages available for SunOS

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