.\" 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_TO_USER" "9" "09 October 2005" "" ""
.SH NAME
csum_partial_copy_to_user \- Copy and checksum to user space.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
unsigned int csum_partial_copy_to_user (unsigned const char * \fIsrc\fB, unsigned char __user * \fIdst\fB, int \fIlen\fB, unsigned int \fIisum\fB, int * \fIerrp\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsrc\fB\fR
source address
.TP
\fB\fIdst\fB\fR
destination address (user space)
.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 destination address.
.SH "DESCRIPTION"
.PP
Returns an 32bit unfolded checksum of the buffer.
src and dst are best aligned to 64bits.