Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hat_getppfnum(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       hat_getppfnum(D3)                                  hat_getppfnum(D3)


       NAME
             hat_getppfnum - get physical page ID for physical address

       SYNOPSIS
             #include <sys/types.h>
             #include <sys/vm.h>
             #include <sys/ddi.h>
             uint_t hat_getppfnum(paddr_t addr, uint_t pspace);

          Arguments
             addr      The physical address for which the physical page ID
                       is to be returned.

             pspace    The physical address space to which addr belongs.

       DESCRIPTION
             hat_getppfnum returns the physical page ID corresponding to
             the physical address addr.

          Return Values
             If addr and pspace are valid, the corresponding physical page
             ID is returned.  Otherwise, NOPAGE is returned.

       USAGE
             This routine can be used to obtain a physical page ID suitable
             to be used as the return value of the driver's mmap(D2) entry
             point.

             Some systems have multiple physical address spaces (different
             buses, and so on).  For these systems, pspace indicates the
             address space to which addr belongs.  For all systems,
             PSPACE_MAINSTORE is defined as the address space that includes
             mainstore system memory.  Other values are implementation-
             defined.

             A physical page ID is a machine-specific token that uniquely
             identifies a page of physical memory in the system (either
             system memory or device memory.)  No assumptions should be
             made about the format of a physical page ID.

          Level
             Base or Interrupt.

          Synchronization Constraints
             Does not sleep.



                           Copyright 1994 Novell, Inc.               Page 1













      hat_getppfnum(D3)                                  hat_getppfnum(D3)


      REFERENCES
            hat_getkpfnum(D3), mmap(D2)

      NOTICES
         Portability
            All processors

         Applicability
            ddi: 1, 2, 4

            phystoppid(D3) replaces hat_getppfnum.





































                          Copyright 1994 Novell, Inc.               Page 2








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