This source file includes following definitions.
- copy_from_user_nmi
1
2
3
4
5
6
7 #include <linux/uaccess.h>
8 #include <linux/export.h>
9
10 #include <asm/tlbflush.h>
11
12
13
14
15
16 unsigned long
17 copy_from_user_nmi(void *to, const void __user *from, unsigned long n)
18 {
19 unsigned long ret;
20
21 if (__range_not_ok(from, n, TASK_SIZE))
22 return n;
23
24 if (!nmi_uaccess_okay())
25 return n;
26
27
28
29
30
31
32 pagefault_disable();
33 ret = __copy_from_user_inatomic(to, from, n);
34 pagefault_enable();
35
36 return ret;
37 }
38 EXPORT_SYMBOL_GPL(copy_from_user_nmi);