copyin(9r)copyin(9r)NAMEcopyin - General: Copies data from a user address space to a kernel
address space
SYNOPSIS
int copyin(
caddr_t user_src,
caddr_t kernel_dest,
u_int bcount );
ARGUMENTS
Specifies the address in user space of the data to be copied. Speci‐
fies the address in kernel space to copy the data to. Specifies the
number of bytes to copy.
DESCRIPTION
The copyin routine copies a specified amount of data from the unpro‐
tected user address space to the protected kernel address space.
RETURN VALUES
Upon successful completion, copyin returns a value of 0 (zero). Other‐
wise, it can return the following error: The address in user space that
you specified in the user_src argument cannot be accessed.
SEE ALSO
Routines: copyinstr(9r), copyout(9r)copyin(9r)