.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "COPY_FROM_USER" "9" "09 October 2005" "" "" .SH NAME copy_from_user \- Copy a block of data from user space. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp unsigned long copy_from_user (void * \fIto\fB, const void __user * \fIfrom\fB, unsigned long \fIn\fB); \fR .SH "ARGUMENTS" .TP \fB\fIto\fB\fR Destination address, in kernel space. .TP \fB\fIfrom\fB\fR Source address, in user space. .TP \fB\fIn\fB\fR Number of bytes to copy. .SH "CONTEXT" .PP User context only. This function may sleep. .SH "DESCRIPTION" .PP Copy data from user space to kernel space. .PP Returns number of bytes that could not be copied. On success, this will be zero. .PP If some data could not be copied, this function will pad the copied data to the requested size using zero bytes.