Subversion Repositories Kolibri OS

Rev

Rev 6934 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6934 serge 1
#ifndef __LINUX_UACCESS_H__
2
#define __LINUX_UACCESS_H__
3
 
4
#include 
7143 serge 5
#include 
6934 serge 6
/*
7
 * These routines enable/disable the pagefault handler. If disabled, it will
8
 * not take any locks and go straight to the fixup table.
9
 *
10
 * User access methods will not sleep when called from a pagefault_disabled()
11
 * environment.
12
 */
13
static inline void pagefault_disable(void)
14
{
15
}
16
 
17
static inline void pagefault_enable(void)
18
{
19
}
7143 serge 20
#ifndef ARCH_HAS_NOCACHE_UACCESS
6934 serge 21
 
7143 serge 22
static inline unsigned long __copy_from_user_inatomic_nocache(void *to,
23
				const void __user *from, unsigned long n)
24
{
25
	return __copy_from_user_inatomic(to, from, n);
26
}
27
 
28
static inline unsigned long __copy_from_user_nocache(void *to,
29
				const void __user *from, unsigned long n)
30
{
31
	return __copy_from_user(to, from, n);
32
}
33
 
34
#endif		/* ARCH_HAS_NOCACHE_UACCESS */
35
 
6934 serge 36
#endif		/* __LINUX_UACCESS_H__ */