1 #include "asm/uaccess.h"
2 #include "linux/errno.h"
3 #include "linux/module.h"
5 unsigned int arch_csum_partial(const unsigned char *buff, int len, int sum);
7 unsigned int csum_partial(unsigned char *buff, int len, int sum)
9 return arch_csum_partial(buff, len, sum);
12 EXPORT_SYMBOL(csum_partial);
14 unsigned int csum_partial_copy_to(const unsigned char *src, char __user *dst,
15 int len, int sum, int *err_ptr)
17 if(copy_to_user(dst, src, len)){
22 return(arch_csum_partial(src, len, sum));
25 unsigned int csum_partial_copy_from(const unsigned char __user *src, char *dst,
26 int len, int sum, int *err_ptr)
28 if(copy_from_user(dst, src, len)){
33 return arch_csum_partial(dst, len, sum);
37 * Overrides for Emacs so that we follow Linus's tabbing style.
38 * Emacs will notice this stuff at the end of the file and automatically
39 * adjust the settings for this buffer only. This must remain at the end
41 * ---------------------------------------------------------------------------
43 * c-file-style: "linux"