PTOK(K) UNIX System V PTOK(K)
Name
ptok, ktop - converts virtual and physical addresses
Syntax
#include "sys/param.h"
int
ptok(x)
int x;
int
ktop(x)
int x;
Description
The ptok macro converts a physical address x to a kernel
virtual address.
The ktop macro converts kernel virtual address x to a
physical address.
Parameters
x is the address to be switched.
Return Value
The new kernel virtual address is returned by ptok. The new
physical address is returned by ktop.
(printed 7/6/89)