Lines Matching refs:n

239 …rn unsigned long __must_check __copy_from_user(void *to, const void __user *from, unsigned long n);
240 extern unsigned long __must_check __copy_to_user(void __user *to, const void *from, unsigned long n
241 …signed long __must_check __copy_in_user(void __user *to, const void __user *from, unsigned long n);
242 extern unsigned long __must_check __clear_user(void __user *addr, unsigned long n);
244 …nline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument
246 if (access_ok(VERIFY_READ, from, n)) in copy_from_user()
247 n = __copy_from_user(to, from, n); in copy_from_user()
249 memset(to, 0, n); in copy_from_user()
250 return n; in copy_from_user()
253 … inline unsigned long __must_check copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument
255 if (access_ok(VERIFY_WRITE, to, n)) in copy_to_user()
256 n = __copy_to_user(to, from, n); in copy_to_user()
257 return n; in copy_to_user()
260 … unsigned long __must_check copy_in_user(void __user *to, const void __user *from, unsigned long n) in copy_in_user() argument
262 if (access_ok(VERIFY_READ, from, n) && access_ok(VERIFY_WRITE, to, n)) in copy_in_user()
263 n = __copy_in_user(to, from, n); in copy_in_user()
264 return n; in copy_in_user()
270 static inline unsigned long __must_check clear_user(void __user *to, unsigned long n) in clear_user() argument
272 if (access_ok(VERIFY_WRITE, to, n)) in clear_user()
273 n = __clear_user(to, n); in clear_user()
274 return n; in clear_user()
280 extern __must_check long strnlen_user(const char __user *str, long n);