uaccess.c 706 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/uaccess.h>
  3. __rust_helper unsigned long
  4. rust_helper_copy_from_user(void *to, const void __user *from, unsigned long n)
  5. {
  6. return copy_from_user(to, from, n);
  7. }
  8. __rust_helper unsigned long
  9. rust_helper_copy_to_user(void __user *to, const void *from, unsigned long n)
  10. {
  11. return copy_to_user(to, from, n);
  12. }
  13. #ifdef INLINE_COPY_FROM_USER
  14. __rust_helper
  15. unsigned long rust_helper__copy_from_user(void *to, const void __user *from, unsigned long n)
  16. {
  17. return _inline_copy_from_user(to, from, n);
  18. }
  19. __rust_helper
  20. unsigned long rust_helper__copy_to_user(void __user *to, const void *from, unsigned long n)
  21. {
  22. return _inline_copy_to_user(to, from, n);
  23. }
  24. #endif