Lines Matching refs:kernel_optval
866 void *kernel_optval; in z_vrfy_zsock_getsockopt() local
874 kernel_optval = k_usermode_alloc_from_copy((const void *)optval, in z_vrfy_zsock_getsockopt()
876 K_OOPS(!kernel_optval); in z_vrfy_zsock_getsockopt()
879 kernel_optval, &kernel_optlen); in z_vrfy_zsock_getsockopt()
881 K_OOPS(k_usermode_to_copy((void *)optval, kernel_optval, kernel_optlen)); in z_vrfy_zsock_getsockopt()
885 k_free(kernel_optval); in z_vrfy_zsock_getsockopt()
911 void *kernel_optval; in z_vrfy_zsock_setsockopt() local
914 kernel_optval = k_usermode_alloc_from_copy((const void *)optval, optlen); in z_vrfy_zsock_setsockopt()
915 K_OOPS(!kernel_optval); in z_vrfy_zsock_setsockopt()
918 kernel_optval, optlen); in z_vrfy_zsock_setsockopt()
920 k_free(kernel_optval); in z_vrfy_zsock_setsockopt()