Lines Matching refs:msg_sys
1355 struct msghdr msg_sys; in sys_sendmsg() local
1359 if (copy_from_user(&msg_sys,msg,sizeof(struct msghdr))) in sys_sendmsg()
1368 if (msg_sys.msg_iovlen > UIO_MAXIOV) in sys_sendmsg()
1373 iov_size = msg_sys.msg_iovlen * sizeof(struct iovec); in sys_sendmsg()
1374 if (msg_sys.msg_iovlen > UIO_FASTIOV) { in sys_sendmsg()
1381 err = verify_iovec(&msg_sys, iov, address, VERIFY_READ); in sys_sendmsg()
1388 if (msg_sys.msg_controllen > INT_MAX) in sys_sendmsg()
1390 ctl_len = msg_sys.msg_controllen; in sys_sendmsg()
1400 if (copy_from_user(ctl_buf, msg_sys.msg_control, ctl_len)) in sys_sendmsg()
1402 msg_sys.msg_control = ctl_buf; in sys_sendmsg()
1404 msg_sys.msg_flags = flags; in sys_sendmsg()
1407 msg_sys.msg_flags |= MSG_DONTWAIT; in sys_sendmsg()
1408 err = sock_sendmsg(sock, &msg_sys, total_len); in sys_sendmsg()
1431 struct msghdr msg_sys; in sys_recvmsg() local
1443 if (copy_from_user(&msg_sys,msg,sizeof(struct msghdr))) in sys_recvmsg()
1451 if (msg_sys.msg_iovlen > UIO_MAXIOV) in sys_recvmsg()
1456 iov_size = msg_sys.msg_iovlen * sizeof(struct iovec); in sys_recvmsg()
1457 if (msg_sys.msg_iovlen > UIO_FASTIOV) { in sys_recvmsg()
1468 uaddr = msg_sys.msg_name; in sys_recvmsg()
1470 err = verify_iovec(&msg_sys, iov, addr, VERIFY_WRITE); in sys_recvmsg()
1475 cmsg_ptr = (unsigned long)msg_sys.msg_control; in sys_recvmsg()
1476 msg_sys.msg_flags = 0; in sys_recvmsg()
1480 err = sock_recvmsg(sock, &msg_sys, total_len, flags); in sys_recvmsg()
1486 err = move_addr_to_user(addr, msg_sys.msg_namelen, uaddr, uaddr_len); in sys_recvmsg()
1490 err = __put_user(msg_sys.msg_flags, &msg->msg_flags); in sys_recvmsg()
1493 err = __put_user((unsigned long)msg_sys.msg_control-cmsg_ptr, in sys_recvmsg()