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

phystoppid(D3)


phystoppid -- get physical page ID for physical address

Synopsis (Not in current DDI version)

   #include <sys/types.h>
   #include <sys/vmparam.h>
   #include <sys/ddi.h>
   

ppid_t phystoppid(paddr_t addr);

Description

phystoppid returns the physical page ID that corresponds to the physical address, addr.

Arguments


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

Return values

If addr is 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.

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.

Context and synchronization

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

Hardware applicability

PC-AT compatible platforms

Version applicability

ddi: 3, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp ddi:

Differences between versions

phystoppid( ) is not supported in DDI 8; use devmem_ppid(D3) instead.

References

Intro(D3), kvtoppid(D3), mmap(D2)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005