Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pptophys(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       pptophys(D3)                                            pptophys(D3)


       NAME
             pptophys - convert page pointer to physical address

       SYNOPSIS
             #include <sys/types.h>
             #include <vm/page.h>
             #include <sys/ddi.h>
             paddr_t pptophys(page_t *pp);

          Arguments
             pp        Pointer to the page structure.

       DESCRIPTION
             pptophys converts a pointer to a page structure to a physical
             address.

          Return Values
             The physical address represented by the page structure pointed
             to by pp.

       USAGE
             Block drivers can use this address for physical DMA operations
             during paged-I/O requests.  A paged-I/O request is identified
             by the B_PAGEIO flag being set in the b_flags field of the
             buffer header [see buf(D4)] passed to a driver's strategy(D2)
             routine.  The pointer to the page structure can be obtained by
             calling getnextpg(D3).

             B_PAGEIO won't be set unless the driver has the D_NOBRKUP flag
             set [see devflag(D1).]

          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.

       REFERENCES
             devflag(D1), strategy(D2), getnextpg(D3), buf(D4)

       NOTICES




                           Copyright 1994 Novell, Inc.               Page 1













      pptophys(D3)                                            pptophys(D3)


         Portability
            AT-compatible architectures

         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