Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ptob(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       ptob(D3)                                                    ptob(D3)


       NAME
             ptob - convert size in pages to size in bytes

       SYNOPSIS
             #include <sys/types.h>
             #include <sys/ddi.h>
             ulong_t ptob(ulong_t numpages);

          Arguments
             numpages  Size in pages to convert to equivalent size in
                       bytes.

       DESCRIPTION
             ptob returns the number of bytes that are contained in the
             specified number of pages.

          Return Values
             The return value is the number of bytes in the specified
             number of pages.

       USAGE
             There is no checking done on the input value and overflow is
             not detected.

             In the case of a page count whose corresponding byte count
             cannot be represented by a ulong_t the higher order bits are
             truncated.

          Level
             Base or Interrupt.

          Synchronization Constraints
             Does not sleep.

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

          Examples
             If the page size is 2048, then ptob(2) returns 4096.  ptob(0)
             returns 0.

       REFERENCES
             btop(D3), btopr(D3)





                           Copyright 1994 Novell, Inc.               Page 1













      ptob(D3)                                                    ptob(D3)


      NOTICES
         Portability
            All processors

         Applicability
            ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp










































                          Copyright 1994 Novell, Inc.               Page 2








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