Lines Matching refs:msg_sys

1920 			  struct msghdr *msg_sys, unsigned flags,  in ___sys_sendmsg()  argument
1935 if (get_compat_msghdr(msg_sys, msg_compat)) in ___sys_sendmsg()
1938 err = copy_msghdr_from_user(msg_sys, msg); in ___sys_sendmsg()
1945 if (msg_sys->msg_iovlen > UIO_MAXIOV) in ___sys_sendmsg()
1950 iov_size = msg_sys->msg_iovlen * sizeof(struct iovec); in ___sys_sendmsg()
1951 if (msg_sys->msg_iovlen > UIO_FASTIOV) { in ___sys_sendmsg()
1959 err = verify_compat_iovec(msg_sys, iov, &address, VERIFY_READ); in ___sys_sendmsg()
1961 err = verify_iovec(msg_sys, iov, &address, VERIFY_READ); in ___sys_sendmsg()
1968 if (msg_sys->msg_controllen > INT_MAX) in ___sys_sendmsg()
1970 ctl_len = msg_sys->msg_controllen; in ___sys_sendmsg()
1973 cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl, in ___sys_sendmsg()
1977 ctl_buf = msg_sys->msg_control; in ___sys_sendmsg()
1978 ctl_len = msg_sys->msg_controllen; in ___sys_sendmsg()
1992 (void __user __force *)msg_sys->msg_control, in ___sys_sendmsg()
1995 msg_sys->msg_control = ctl_buf; in ___sys_sendmsg()
1997 msg_sys->msg_flags = flags; in ___sys_sendmsg()
2000 msg_sys->msg_flags |= MSG_DONTWAIT; in ___sys_sendmsg()
2007 if (used_address && msg_sys->msg_name && in ___sys_sendmsg()
2008 used_address->name_len == msg_sys->msg_namelen && in ___sys_sendmsg()
2009 !memcmp(&used_address->name, msg_sys->msg_name, in ___sys_sendmsg()
2011 err = sock_sendmsg_nosec(sock, msg_sys, total_len); in ___sys_sendmsg()
2014 err = sock_sendmsg(sock, msg_sys, total_len); in ___sys_sendmsg()
2020 used_address->name_len = msg_sys->msg_namelen; in ___sys_sendmsg()
2021 if (msg_sys->msg_name) in ___sys_sendmsg()
2022 memcpy(&used_address->name, msg_sys->msg_name, in ___sys_sendmsg()
2043 struct msghdr msg_sys; in __sys_sendmsg() local
2050 err = ___sys_sendmsg(sock, msg, &msg_sys, flags, NULL); in __sys_sendmsg()
2075 struct msghdr msg_sys; in __sys_sendmmsg() local
2095 &msg_sys, flags, &used_address); in __sys_sendmmsg()
2103 &msg_sys, flags, &used_address); in __sys_sendmmsg()
2133 struct msghdr *msg_sys, unsigned flags, int nosec) in ___sys_recvmsg() argument
2150 if (get_compat_msghdr(msg_sys, msg_compat)) in ___sys_recvmsg()
2153 err = copy_msghdr_from_user(msg_sys, msg); in ___sys_recvmsg()
2159 if (msg_sys->msg_iovlen > UIO_MAXIOV) in ___sys_recvmsg()
2164 iov_size = msg_sys->msg_iovlen * sizeof(struct iovec); in ___sys_recvmsg()
2165 if (msg_sys->msg_iovlen > UIO_FASTIOV) { in ___sys_recvmsg()
2174 uaddr = (__force void __user *)msg_sys->msg_name; in ___sys_recvmsg()
2177 err = verify_compat_iovec(msg_sys, iov, &addr, VERIFY_WRITE); in ___sys_recvmsg()
2179 err = verify_iovec(msg_sys, iov, &addr, VERIFY_WRITE); in ___sys_recvmsg()
2184 cmsg_ptr = (unsigned long)msg_sys->msg_control; in ___sys_recvmsg()
2185 msg_sys->msg_flags = flags & (MSG_CMSG_CLOEXEC|MSG_CMSG_COMPAT); in ___sys_recvmsg()
2188 msg_sys->msg_namelen = 0; in ___sys_recvmsg()
2192 err = (nosec ? sock_recvmsg_nosec : sock_recvmsg)(sock, msg_sys, in ___sys_recvmsg()
2200 msg_sys->msg_namelen, uaddr, in ___sys_recvmsg()
2205 err = __put_user((msg_sys->msg_flags & ~MSG_CMSG_COMPAT), in ___sys_recvmsg()
2210 err = __put_user((unsigned long)msg_sys->msg_control - cmsg_ptr, in ___sys_recvmsg()
2213 err = __put_user((unsigned long)msg_sys->msg_control - cmsg_ptr, in ___sys_recvmsg()
2233 struct msghdr msg_sys; in __sys_recvmsg() local
2240 err = ___sys_recvmsg(sock, msg, &msg_sys, flags, 0); in __sys_recvmsg()
2266 struct msghdr msg_sys; in __sys_recvmmsg() local
2293 &msg_sys, flags & ~MSG_WAITFORONE, in __sys_recvmmsg()
2302 &msg_sys, flags & ~MSG_WAITFORONE, in __sys_recvmmsg()
2332 if (msg_sys.msg_flags & MSG_OOB) in __sys_recvmmsg()