uaccess.h 515 B

12345678910111213141516171819202122
  1. #ifndef __LINUX_UACCESS_H__
  2. #define __LINUX_UACCESS_H__
  3. #include <asm/uaccess.h>
  4. #ifndef ARCH_HAS_NOCACHE_UACCESS
  5. static inline unsigned long __copy_from_user_inatomic_nocache(void *to,
  6. const void __user *from, unsigned long n)
  7. {
  8. return __copy_from_user_inatomic(to, from, n);
  9. }
  10. static inline unsigned long __copy_from_user_nocache(void *to,
  11. const void __user *from, unsigned long n)
  12. {
  13. return __copy_from_user(to, from, n);
  14. }
  15. #endif /* ARCH_HAS_NOCACHE_UACCESS */
  16. #endif /* __LINUX_UACCESS_H__ */