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