.\" 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_TO_USER" "9" "09 October 2005" "" ""
.SH NAME
copy_to_user \- Copy a block of data into user space.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
unsigned long copy_to_user (void __user * \fIto\fB, const void * \fIfrom\fB, unsigned long \fIn\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIto\fB\fR
Destination address, in user space.
.TP
\fB\fIfrom\fB\fR
Source address, in kernel 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 kernel space to user space.
.PP
Returns number of bytes that could not be copied.
On success, this will be zero.