Index Index for
Section 9r
Index Alphabetical
listing for C
Bottom of page Bottom of
page

copyin(9r)

NAME

copyin - 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

user_src Specifies the address in user space of the data to be copied. kernel_dest Specifies the address in kernel space to copy the data to. bcount Specifies the number of bytes to copy.

DESCRIPTION

The copyin routine copies a specified amount of data from the unprotected user address space to the protected kernel address space.

RETURN VALUES

Upon successful completion, copyin returns a value of 0 (zero). Otherwise, it can return the following error: EFAULT The address in user space that you specified in the user_src argument cannot be accessed.

SEE ALSO

Routines: copyinstr(9r), copyout(9r)

Index Index for
Section 9r
Index Alphabetical
listing for C
Top of page Top of
page