.TH xpcopy() "" "" "Internel Kernel Routine"
.PC "Copy from kernel data to physical or system global memory"
.B "#include <sys/seg.h>"
\fBxpcopy(\fIsrc\^\fB, \fIdest\^\fB, \fInum_bytes\^\fB, \fIflag\^\fB)\fR
\fBvaddr_t \fIsrc\^\fB; paddr_t \fIdest\^\fB; unsigned int \fInum_bytes\^\fB; int \fIflag\^\fB;\fR
.PP
Kernel function
.B xpcopy()
copies kernel data to an address that you specify.
You can invoke it in either of two forms.
.PP
The first form copies
.I num_bytes
from kernel data virtual address
.I src
to physical address
.IR dest .
This form is selected by setting argument
.I flag
to manifest constant
.BR SEL_386_KD|SEG_VIRT .
.PP
The second form copies
.I num_bytes
from kernel data virtual address
.I src
to system global address
.IR dest .
This form is selected by setting argument
.I flag
to manifest constant
.BR SEL_386_KD .
.PP
.I
Note well that
.R num_bytes
must be less than or equal to four kilobytes (4,096 bytes).
.R
.PP
No alignment restrictions are placed on
.I src
or
.IR dest .
.SH "See Also"
.B
internal kernel routines
.R
