Lines Matching refs:kmsg
2305 int __copy_msghdr_from_user(struct msghdr *kmsg, in __copy_msghdr_from_user() argument
2316 kmsg->msg_control_is_user = true; in __copy_msghdr_from_user()
2317 kmsg->msg_control_user = msg.msg_control; in __copy_msghdr_from_user()
2318 kmsg->msg_controllen = msg.msg_controllen; in __copy_msghdr_from_user()
2319 kmsg->msg_flags = msg.msg_flags; in __copy_msghdr_from_user()
2321 kmsg->msg_namelen = msg.msg_namelen; in __copy_msghdr_from_user()
2323 kmsg->msg_namelen = 0; in __copy_msghdr_from_user()
2325 if (kmsg->msg_namelen < 0) in __copy_msghdr_from_user()
2328 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __copy_msghdr_from_user()
2329 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __copy_msghdr_from_user()
2334 if (msg.msg_name && kmsg->msg_namelen) { in __copy_msghdr_from_user()
2337 kmsg->msg_namelen, in __copy_msghdr_from_user()
2338 kmsg->msg_name); in __copy_msghdr_from_user()
2343 kmsg->msg_name = NULL; in __copy_msghdr_from_user()
2344 kmsg->msg_namelen = 0; in __copy_msghdr_from_user()
2350 kmsg->msg_iocb = NULL; in __copy_msghdr_from_user()
2356 static int copy_msghdr_from_user(struct msghdr *kmsg, in copy_msghdr_from_user() argument
2364 err = __copy_msghdr_from_user(kmsg, umsg, save_addr, &msg.msg_iov, in copy_msghdr_from_user()
2371 UIO_FASTIOV, iov, &kmsg->msg_iter); in copy_msghdr_from_user()