#ifndef _ASM_UACCESS_H #define _ASM_UACCESS_H #include <linux/string.h>
static inline __must_check unsigned long raw_copy_from_user(void *to, const void __user * from, unsigned long n) { if (__builtin_constant_p(n)) { switch(n) { case 1: *(u8 *)to = *(u8 __force *)from; return 0; case 2: *(u16 *)to = *(u16 __force *)from; return 0; case 4: *(u32 *)to = *(u32 __force *)from; return 0; } } memcpy(to, (const void __force *)from, n); return 0; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Al Viro | 119 | 100.00% | 2 | 100.00% |
Total | 119 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Al Viro | 120 | 100.00% | 2 | 100.00% |
Total | 120 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Al Viro | 259 | 100.00% | 2 | 100.00% |
Total | 259 | 100.00% | 2 | 100.00% |