.TH kucopy() "" "" "Internal Kernel Routine"
.PC "Kernel-to-user data copy"
.B unsigned
\fBkucopy(\fIk\^\fB, \fIu\^\fB, \fIn\^\fB)\fR
\fBchar *\fIk\^\fB;\fR
\fBchar *\fIu\^\fB;\fR
\fBunsigned \fIn\^\fB;\fR
.PP
.B kucopy()
copies \fIn\fR bytes from offset \fIk\fR in the kernel's data segment
to offset \fIu\fR in user's data segment.
It returns the number of bytes copied.
If an address fault occurs,
.B kucopy()
calls
.B set_user_error()
with the value
.B EFAULT
and returns zero.
.SH "See Also"
.B
internal kernel routines,
ukcopy()
.R
.SH Notes
This function is equivalent to the DDI/DKI routine
.BR copyout() .
