DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

pptophys(D3)


pptophys -- convert page pointer to physical address

Synopsis (Not in current DDI version)

   #include <sys/types.h>
   #include <vm/page.h>
   #include <sys/ddi.h>
   

paddr_t pptophys(page_t *pp);

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).]

Context and synchronization

Non-blockable, interrupt, user, or blockable context.

Hardware applicability

PC-AT compatible platforms

Version applicability

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

Differences between versions

pptophys(D3) is not supported in DDI 8. BA_PAGELIST is replaced by BA_SCGTH and BA_SCGTH64.

References

devflag(D1), strategy(D2), getnextpg(D3), buf(D4)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005