copyout(9r)copyout(9r)NAMEcopyout - General: Copies data from a kernel address space to a user
address space
SYNOPSIS
int copyout(
caddr_t kernel_src,
caddr_t user_dest,
u_int bcount );
ARGUMENTS
Specifies the address in kernel space of the data to be copied. Speci‐
fies the address in user space to copy the data to. Specifies the num‐
ber of bytes to copy.
DESCRIPTION
The copyout routine copies a specified amount of data from the pro‐
tected kernel address space to the unprotected user address space.
RETURN VALUES
Upon successful completion, copyout returns the value 0 (zero). Other‐
wise, 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.
SEE ALSO
Routines: copyin(9r), copyoutstr(9r)copyout(9r)