File Index
Files and directories
Sign in
FILE

uaccess.c

File preview with syntax highlighting.

linux-6.19.14/rust/helpers/uaccess.c C
 1// SPDX-License-Identifier: GPL-2.0
 2
 3#include <linux/uaccess.h>
 4
 5unsigned 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
11unsigned 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
17#ifdef INLINE_COPY_FROM_USER
18unsigned long rust_helper__copy_from_user(void *to, const void __user *from, unsigned long n)
19{
20	return _inline_copy_from_user(to, from, n);
21}
22
23unsigned long rust_helper__copy_to_user(void __user *to, const void *from, unsigned long n)
24{
25	return _inline_copy_to_user(to, from, n);
26}
27#endif
~/ Read-only file preview.