xref: /linux/rust/helpers/uaccess.c (revision df9b455633aee0bad3e5c3dc9fc1c860b13c96d2)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/uaccess.h>
4 
5 unsigned long rust_helper_copy_from_user(void *to, const void __user *from,
6 					 unsigned long n)
7 {
8 	return copy_from_user(to, from, n);
9 }
10 
11 unsigned long rust_helper_copy_to_user(void __user *to, const void *from,
12 				       unsigned long n)
13 {
14 	return copy_to_user(to, from, n);
15 }
16