1 #include "asm/uaccess.h"
2 #include "linux/errno.h"
3 #include "linux/module.h"
5 extern unsigned int arch_csum_partial(const char *buff, int len, int sum);
7 extern unsigned int csum_partial(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 char *src, char *dst, int len,
15 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 char *src, char *dst, int len,
26 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"