SVR5
kvtoppid(D3)
kvtoppid --
get physical page ID for kernel virtual address
Synopsis
#include <sys/types.h>
#include <sys/vmparam.h>
#include <sys/ddi.h>
ppid_t kvtoppid(caddr_t addr);
Description
kvtoppid returns the physical page ID corresponding to the
virtual address addr.
Arguments
addr-
The kernel virtual 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, user or blockable
context.
Hardware applicability
All
Version applicability
ddi:
3, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
References
mmap(D2),
Intro(D3),
phystoppid(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005