Lines Matching +full:0 +full:- +full:42
4 * SPDX-License-Identifier: Apache-2.0
16 * 42. This is just for demonstration purposes to show how syscalls can be
23 if (*cookie > 42) { in z_impl_magic_syscall()
25 return -EINVAL; in z_impl_magic_syscall()
30 return 0; in z_impl_magic_syscall()
38 /* Confirm that this user-supplied pointer is valid memory that in z_vrfy_magic_syscall()
41 if (k_usermode_from_copy(&cookie_copy, cookie, sizeof(*cookie)) != 0) { in z_vrfy_magic_syscall()
42 return -EPERM; in z_vrfy_magic_syscall()
49 if (ret == 0 && in z_vrfy_magic_syscall()
50 k_usermode_to_copy(cookie, &cookie_copy, sizeof(*cookie)) != 0) { in z_vrfy_magic_syscall()
51 return -EPERM; in z_vrfy_magic_syscall()