Home
last modified time | relevance | path

Searched refs:msg_control (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v5.4/include/linux/
Dsocket.h53 void *msg_control; /* ancillary data */ member
64 void __user *msg_control; /* ancillary data */ member
104 #define CMSG_FIRSTHDR(msg) __CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen)
108 ((char *)(cmsg) - (char *)(mhdr)->msg_control)))
141 return __cmsg_nxthdr(__msg->msg_control, __msg->msg_controllen, __cmsg); in cmsg_nxthdr()
/Linux-v5.4/tools/testing/selftests/net/
Dmsg_zerocopy.c175 if (!msg->msg_control) in add_zcopy_cookie()
177 cm = (void *)msg->msg_control; in add_zcopy_cookie()
198 memset(&msg->msg_control, 0, sizeof(msg->msg_control)); in do_sendmsg()
200 msg->msg_control = (struct cmsghdr *)ckbuf; in do_sendmsg()
220 msg->msg_control = NULL; in do_sendmsg()
369 msg.msg_control = cmsgbuf; in do_recvmsg_completion()
405 msg.msg_control = control; in do_recv_completion()
Dipv6_flowlabel.c60 msg.msg_control = control; in do_send()
91 msg.msg_control = control; in do_recv()
Dudpgso_bench_tx.c219 msg.msg_control = control; in flush_errqueue_recv()
325 msg.msg_control = control; in send_udp_sendmmsg()
346 mmsgs[i].msg_hdr.msg_control = control; in send_udp_sendmmsg()
389 msg.msg_control = control; in send_udp_segment()
Dtcp_inq.c153 msg.msg_control = cmsgbuf; in main()
Dso_txtime.c73 msg.msg_control = &control; in do_send_one()
Dudpgso_bench_rx.c227 msg.msg_control = control; in recv_msg()
/Linux-v5.4/net/
Dcompat.c59 kmsg->msg_control = compat_ptr(msg.msg_control); in get_compat_msghdr()
101 (struct compat_cmsghdr __user *)((msg)->msg_control) : \
108 ((char *)(ucmsg) - (char *)(mhdr)->msg_control)))
114 if ((unsigned long)(ptr + 1 - (char __user *)msg->msg_control) > in cmsg_compat_nxthdr()
198 kmsg->msg_control = kcmsg_base; in cmsghdr_from_user_compat_to_kern()
212 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in put_cmsg_compat()
261 kmsg->msg_control += cmlen; in put_cmsg_compat()
268 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in scm_detach_fds_compat()
306 kmsg->msg_control += cmlen; in scm_detach_fds_compat()
Dsocket.c1939 msg.msg_control = NULL; in __sys_sendto()
1999 msg.msg_control = NULL; in __sys_recvfrom()
2194 kmsg->msg_control = (void __force *)msg.msg_control; in copy_msghdr_from_user()
2272 ctl_buf = msg_sys->msg_control; in ___sys_sendmsg()
2289 (void __user __force *)msg_sys->msg_control, in ___sys_sendmsg()
2292 msg_sys->msg_control = ctl_buf; in ___sys_sendmsg()
2472 cmsg_ptr = (unsigned long)msg_sys->msg_control; in ___sys_recvmsg()
2497 err = __put_user((unsigned long)msg_sys->msg_control - cmsg_ptr, in ___sys_recvmsg()
2500 err = __put_user((unsigned long)msg_sys->msg_control - cmsg_ptr, in ___sys_recvmsg()
/Linux-v5.4/net/core/
Dscm.c216 = (__force struct cmsghdr __user *)msg->msg_control; in put_cmsg()
244 msg->msg_control += cmlen; in put_cmsg()
281 = (__force struct cmsghdr __user*)msg->msg_control; in scm_detach_fds()
340 msg->msg_control += cmlen; in scm_detach_fds()
/Linux-v5.4/include/net/
Dcompat.h17 compat_uptr_t msg_control; /* void * */ member
Dscm.h116 if (!msg->msg_control) { in scm_recv()
/Linux-v5.4/tools/testing/selftests/android/ion/
Dipcsocket.c138 msgh.msg_control = &cmsg_b; in sendtosocket()
191 msgh.msg_control = &cmsg_b; in receivefromsocket()
/Linux-v5.4/net/rxrpc/
Doutput.c157 msg.msg_control = NULL; in rxrpc_send_ack_packet()
283 msg.msg_control = NULL; in rxrpc_send_abort_packet()
364 msg.msg_control = NULL; in rxrpc_send_data_packet()
561 msg.msg_control = NULL; in rxrpc_reject_packets()
630 msg.msg_control = NULL; in rxrpc_send_keepalive()
Dlocal_event.c43 msg.msg_control = NULL; in rxrpc_send_version_request()
Dconn_event.c57 msg.msg_control = NULL; in rxrpc_conn_retransmit_call()
218 msg.msg_control = NULL; in rxrpc_abort_connection()
/Linux-v5.4/samples/seccomp/
Duser-trap.c44 msg.msg_control = buf; in send_fd()
73 msg.msg_control = buf; in recv_fd()
/Linux-v5.4/drivers/net/
Dtap.c622 static ssize_t tap_get_user(struct tap_queue *q, void *msg_control, in tap_get_user() argument
666 if (msg_control && sock_flag(&q->sk, SOCK_ZEROCOPY)) { in tap_get_user()
727 skb_shinfo(skb)->destructor_arg = msg_control; in tap_get_user()
730 } else if (msg_control) { in tap_get_user()
731 struct ubuf_info *uarg = msg_control; in tap_get_user()
1214 struct tun_msg_ctl *ctl = m->msg_control; in tap_sendmsg()
1234 struct sk_buff *skb = m->msg_control; in tap_recvmsg()
/Linux-v5.4/drivers/vhost/
Dnet.c474 msghdr->msg_control = &ctl; in vhost_tx_batch()
766 .msg_control = NULL, in handle_tx_copy()
819 msg.msg_control = NULL; in handle_tx_copy()
855 .msg_control = NULL, in handle_tx_zerocopy()
904 msg.msg_control = &ctl; in handle_tx_zerocopy()
912 msg.msg_control = NULL; in handle_tx_zerocopy()
1104 .msg_control = NULL, /* FIXME: get and handle RX aux data. */ in handle_rx()
1170 msg.msg_control = vhost_net_buf_consume(&nvq->rxq); in handle_rx()
/Linux-v5.4/arch/um/os-Linux/drivers/
Dtuntap_user.c98 msg.msg_control = buf; in tuntap_open_tramp()
/Linux-v5.4/arch/um/os-Linux/
Dfile.c515 msg.msg_control = buf; in os_rcv_fd()
648 .msg_control = u.control, in os_sendmsg_fds()
/Linux-v5.4/Documentation/networking/
Dtls.rst144 msg.msg_control = buf;
177 msg.msg_control = cmsg;
/Linux-v5.4/arch/um/drivers/
Dmconsole_user.c52 msg.msg_control = NULL; in mconsole_reply_v0()
/Linux-v5.4/fs/afs/
Drxrpc.c437 msg.msg_control = NULL; in afs_make_call()
912 msg.msg_control = NULL; in afs_send_empty_reply()
952 msg.msg_control = NULL; in afs_send_simple_reply()
/Linux-v5.4/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c289 msg.msg_control = ctrl; in recv_errmsg()
512 msg.msg_control = control; in do_test()

12