Subversion Repositories Kolibri OS

Rev

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

  1. #ifndef __LINUX_UACCESS_H__
  2. #define __LINUX_UACCESS_H__
  3.  
  4. #include <linux/sched.h>
  5. #include <asm/uaccess.h>
  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. }
  20. #ifndef ARCH_HAS_NOCACHE_UACCESS
  21.  
  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.  
  36. #endif          /* __LINUX_UACCESS_H__ */
  37.