.\" 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 "CSUM_PARTIAL_COPY_FROM_USER" "9" "09 October 2005" "" ""
.SH NAME
csum_partial_copy_from_user \- Copy and checksum from user space.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
unsigned int csum_partial_copy_from_user (const unsigned char __user * \fIsrc\fB, unsigned char * \fIdst\fB, int \fIlen\fB, unsigned int \fIisum\fB, int * \fIerrp\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsrc\fB\fR
source address (user space)
.TP
\fB\fIdst\fB\fR
destination address
.TP
\fB\fIlen\fB\fR
number of bytes to be copied.
.TP
\fB\fIisum\fB\fR
initial sum that is added into the result (32bit unfolded)
.TP
\fB\fIerrp\fB\fR
set to -EFAULT for an bad source address.
.SH "DESCRIPTION"
.PP
Returns an 32bit unfolded checksum of the buffer.
src and dst are best aligned to 64bits.