copyout - General: Copies data from a kernel address space
to a user address space
int copyout(
caddr_t kernel_src,
caddr_t user_dest,
u_int bcount );
Specifies the address in kernel space of the data to be
copied. Specifies the address in user space to copy the
data to. Specifies the number of bytes to copy.
The copyout routine copies a specified amount of data from
the protected kernel address space to the unprotected user
address space.
Upon successful completion, copyout returns the value 0
(zero). Otherwise, it returns the following error: The
address in kernel space that you specified in the kernel_src
argument cannot be accessed; or, the length you
specified in bcount is invalid.
Routines: copyin(9r), copyoutstr(9r)
copyout(9r)
[ Back ] |