Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ btop(D3DK) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

btop(D3DK)  —  

.IX \f4btop\fP(D3DK)

NAME

btop − convert size in bytes to size in pages (round down)

SYNOPSIS

#include <sys/types.h>
#include <sys/ddi.h>
ulong_t btop(ulong_t numbytes);

ARGUMENTS

numbytesSize in bytes to convert to equivalent size in pages. 

DESCRIPTION

btop returns the number of pages that are contained in the specified number of bytes, with downward rounding if the byte count is not a page multiple. 

For example, if the page size is 2048, then btop(4096) and btop(4097) both return 2, and btop(4095) returns 1. 

btop(0) returns 0. 

RETURN VALUE

The return value is the number of pages.  There are no invalid input values, and therefore no error return values. 

LEVEL

Base or Interrupt. 

NOTES

Does not sleep. 

Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function. 

SEE ALSO

btopr(D3DK), ptob(D3DK)

DDI/DKI

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026