Lines Matching refs:msg_sys
2236 static int ____sys_sendmsg(struct socket *sock, struct msghdr *msg_sys, in ____sys_sendmsg() argument
2249 if (msg_sys->msg_controllen > INT_MAX) in ____sys_sendmsg()
2251 flags |= (msg_sys->msg_flags & allowed_msghdr_flags); in ____sys_sendmsg()
2252 ctl_len = msg_sys->msg_controllen; in ____sys_sendmsg()
2255 cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl, in ____sys_sendmsg()
2259 ctl_buf = msg_sys->msg_control; in ____sys_sendmsg()
2260 ctl_len = msg_sys->msg_controllen; in ____sys_sendmsg()
2276 (void __user __force *)msg_sys->msg_control, in ____sys_sendmsg()
2279 msg_sys->msg_control = ctl_buf; in ____sys_sendmsg()
2281 msg_sys->msg_flags = flags; in ____sys_sendmsg()
2284 msg_sys->msg_flags |= MSG_DONTWAIT; in ____sys_sendmsg()
2291 if (used_address && msg_sys->msg_name && in ____sys_sendmsg()
2292 used_address->name_len == msg_sys->msg_namelen && in ____sys_sendmsg()
2293 !memcmp(&used_address->name, msg_sys->msg_name, in ____sys_sendmsg()
2295 err = sock_sendmsg_nosec(sock, msg_sys); in ____sys_sendmsg()
2298 err = sock_sendmsg(sock, msg_sys); in ____sys_sendmsg()
2304 used_address->name_len = msg_sys->msg_namelen; in ____sys_sendmsg()
2305 if (msg_sys->msg_name) in ____sys_sendmsg()
2306 memcpy(&used_address->name, msg_sys->msg_name, in ____sys_sendmsg()
2338 struct msghdr *msg_sys, unsigned int flags, in ___sys_sendmsg() argument
2346 msg_sys->msg_name = &address; in ___sys_sendmsg()
2348 err = sendmsg_copy_msghdr(msg_sys, msg, flags, &iov); in ___sys_sendmsg()
2352 err = ____sys_sendmsg(sock, msg_sys, flags, used_address, in ___sys_sendmsg()
2388 struct msghdr msg_sys; in __sys_sendmsg() local
2398 err = ___sys_sendmsg(sock, msg, &msg_sys, flags, NULL, 0); in __sys_sendmsg()
2421 struct msghdr msg_sys; in __sys_sendmmsg() local
2449 &msg_sys, flags, &used_address, MSG_EOR); in __sys_sendmmsg()
2457 &msg_sys, flags, &used_address, MSG_EOR); in __sys_sendmmsg()
2467 if (msg_data_left(&msg_sys)) in __sys_sendmmsg()
2508 static int ____sys_recvmsg(struct socket *sock, struct msghdr *msg_sys, in ____sys_recvmsg() argument
2521 msg_sys->msg_name = &addr; in ____sys_recvmsg()
2522 cmsg_ptr = (unsigned long)msg_sys->msg_control; in ____sys_recvmsg()
2523 msg_sys->msg_flags = flags & (MSG_CMSG_CLOEXEC|MSG_CMSG_COMPAT); in ____sys_recvmsg()
2526 msg_sys->msg_namelen = 0; in ____sys_recvmsg()
2530 err = (nosec ? sock_recvmsg_nosec : sock_recvmsg)(sock, msg_sys, flags); in ____sys_recvmsg()
2537 msg_sys->msg_namelen, uaddr, in ____sys_recvmsg()
2542 err = __put_user((msg_sys->msg_flags & ~MSG_CMSG_COMPAT), in ____sys_recvmsg()
2547 err = __put_user((unsigned long)msg_sys->msg_control - cmsg_ptr, in ____sys_recvmsg()
2550 err = __put_user((unsigned long)msg_sys->msg_control - cmsg_ptr, in ____sys_recvmsg()
2560 struct msghdr *msg_sys, unsigned int flags, int nosec) in ___sys_recvmsg() argument
2567 err = recvmsg_copy_msghdr(msg_sys, msg, flags, &uaddr, &iov); in ___sys_recvmsg()
2571 err = ____sys_recvmsg(sock, msg_sys, msg, uaddr, flags, nosec); in ___sys_recvmsg()
2608 struct msghdr msg_sys; in __sys_recvmsg() local
2618 err = ___sys_recvmsg(sock, msg, &msg_sys, flags, 0); in __sys_recvmsg()
2643 struct msghdr msg_sys; in do_recvmmsg() local
2675 &msg_sys, flags & ~MSG_WAITFORONE, in do_recvmmsg()
2684 &msg_sys, flags & ~MSG_WAITFORONE, in do_recvmmsg()
2714 if (msg_sys.msg_flags & MSG_OOB) in do_recvmmsg()