SVR5
hat_getkpfnum(D3)
hat_getkpfnum --
get physical page ID for kernel virtual address
Synopsis (Not in current DDI version)
#include <sys/vm.h>
#include <sys/types.h>
#include <sys/ddi.h>
uint_t hat_getkpfnum(caddr_t addr);
Description
hat_getkpfnum 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, interrupt, user, or blockable
context.
Hardware applicability
All
Version applicability
ddi:
1, 2, 4
Differences between versions
kvtoppid(D3)
replaces hat_getkpfnum.
References
hat_getppfnum(D3),
mmap(D2)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005