patch-2.1.26 linux/include/asm-alpha/checksum.h

Next file: linux/include/asm-alpha/current.h
Previous file: linux/fs/select.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.25/linux/include/asm-alpha/checksum.h linux/include/asm-alpha/checksum.h
@@ -44,9 +44,16 @@
 /*
  * the same as csum_partial, but copies from user space (but on the alpha
  * we have just one address space, so this is identical to the above)
+ *
+ * this is obsolete and will go away.
  */
 #define csum_partial_copy_fromuser csum_partial_copy
 
+/*
+ * this is a new version of the above that records errors it finds in *errp,
+ * but continues and zeros the rest of the buffer.
+ */
+unsigned int csum_partial_copy_from_user(int *errp, char *src, char *dst, int len, unsigned int sum);
 
 /*
  * this routine is used for miscellaneous IP-like checksums, mainly

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov