Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/linux/
Dsocket.h52 void *msg_control; /* ancillary data */ member
63 void __user *msg_control; /* ancillary data */ member
103 #define CMSG_FIRSTHDR(msg) __CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen)
107 ((char *)(cmsg) - (char *)(mhdr)->msg_control)))
140 return __cmsg_nxthdr(__msg->msg_control, __msg->msg_controllen, __cmsg); in cmsg_nxthdr()
/Linux-v4.19/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()
Dtcp_inq.c163 msg.msg_control = cmsgbuf; in main()
Dudpgso_bench_tx.c226 msg.msg_control = control; in send_udp_segment()
/Linux-v4.19/net/core/
Dscm.c219 = (__force struct cmsghdr __user *)msg->msg_control; in put_cmsg()
247 msg->msg_control += cmlen; in put_cmsg()
258 = (__force struct cmsghdr __user*)msg->msg_control; in scm_detach_fds()
317 msg->msg_control += cmlen; in scm_detach_fds()
/Linux-v4.19/net/
Dcompat.c58 kmsg->msg_control = compat_ptr(msg.msg_control); in get_compat_msghdr()
99 (struct compat_cmsghdr __user *)((msg)->msg_control) : \
106 ((char *)(ucmsg) - (char *)(mhdr)->msg_control)))
112 if ((unsigned long)(ptr + 1 - (char __user *)msg->msg_control) > in cmsg_compat_nxthdr()
196 kmsg->msg_control = kcmsg_base; in cmsghdr_from_user_compat_to_kern()
210 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in put_cmsg_compat()
259 kmsg->msg_control += cmlen; in put_cmsg_compat()
266 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in scm_detach_fds_compat()
304 kmsg->msg_control += cmlen; in scm_detach_fds_compat()
Dsocket.c1775 msg.msg_control = NULL; in __sys_sendto()
1835 msg.msg_control = NULL; in __sys_recvfrom()
2000 kmsg->msg_control = (void __force *)msg.msg_control; in copy_msghdr_from_user()
2077 ctl_buf = msg_sys->msg_control; in ___sys_sendmsg()
2094 (void __user __force *)msg_sys->msg_control, in ___sys_sendmsg()
2097 msg_sys->msg_control = ctl_buf; in ___sys_sendmsg()
2270 cmsg_ptr = (unsigned long)msg_sys->msg_control; in ___sys_recvmsg()
2295 err = __put_user((unsigned long)msg_sys->msg_control - cmsg_ptr, in ___sys_recvmsg()
2298 err = __put_user((unsigned long)msg_sys->msg_control - cmsg_ptr, in ___sys_recvmsg()
/Linux-v4.19/tools/testing/selftests/android/ion/
Dipcsocket.c138 msgh.msg_control = &cmsg_b; in sendtosocket()
191 msgh.msg_control = &cmsg_b; in receivefromsocket()
/Linux-v4.19/net/rxrpc/
Doutput.c146 msg.msg_control = NULL; in rxrpc_send_ack_packet()
272 msg.msg_control = NULL; in rxrpc_send_abort_packet()
354 msg.msg_control = NULL; in rxrpc_send_data_packet()
537 msg.msg_control = NULL; in rxrpc_reject_packets()
606 msg.msg_control = NULL; in rxrpc_send_keepalive()
Dlocal_event.c47 msg.msg_control = NULL; in rxrpc_send_version_request()
Dconn_event.c61 msg.msg_control = NULL; in rxrpc_conn_retransmit_call()
220 msg.msg_control = NULL; in rxrpc_abort_connection()
/Linux-v4.19/include/net/
Dcompat.h17 compat_uptr_t msg_control; /* void * */ member
Dscm.h116 if (!msg->msg_control) { in scm_recv()
/Linux-v4.19/drivers/net/
Dtap.c666 if (m && m->msg_control && sock_flag(&q->sk, SOCK_ZEROCOPY)) { in tap_get_user()
727 skb_shinfo(skb)->destructor_arg = m->msg_control; in tap_get_user()
730 } else if (m && m->msg_control) { in tap_get_user()
731 struct ubuf_info *uarg = m->msg_control; in tap_get_user()
1160 struct sk_buff *skb = m->msg_control; in tap_recvmsg()
Dtun.c1698 void *msg_control, struct iov_iter *from, in tun_get_user() argument
1755 if (msg_control) { in tun_get_user()
1872 skb_shinfo(skb)->destructor_arg = msg_control; in tun_get_user()
1875 } else if (msg_control) { in tun_get_user()
1876 struct ubuf_info *uarg = msg_control; in tun_get_user()
2362 ret = tun_get_user(tun, tfile, m->msg_control, &m->msg_iter, in tun_sendmsg()
2374 void *ptr = m->msg_control; in tun_recvmsg()
/Linux-v4.19/drivers/vhost/
Dnet.c552 .msg_control = NULL, in handle_tx_copy()
619 .msg_control = NULL, in handle_tx_zerocopy()
667 msg.msg_control = ubuf; in handle_tx_zerocopy()
673 msg.msg_control = NULL; in handle_tx_zerocopy()
907 .msg_control = NULL, /* FIXME: get and handle RX aux data. */ in handle_rx()
970 msg.msg_control = vhost_net_buf_consume(&nvq->rxq); in handle_rx()
/Linux-v4.19/arch/um/os-Linux/drivers/
Dtuntap_user.c98 msg.msg_control = buf; in tuntap_open_tramp()
/Linux-v4.19/Documentation/networking/
Dtls.txt126 msg.msg_control = buf;
157 msg.msg_control = cmsg;
/Linux-v4.19/fs/afs/
Drxrpc.c406 msg.msg_control = NULL; in afs_make_call()
829 msg.msg_control = NULL; in afs_send_empty_reply()
868 msg.msg_control = NULL; in afs_send_simple_reply()
/Linux-v4.19/arch/um/drivers/
Dmconsole_user.c52 msg.msg_control = NULL; in mconsole_reply_v0()
/Linux-v4.19/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c189 hdr.msg_control = cmsg_buf; in do_recv()
Dtimestamping.c298 msg.msg_control = &control; in recvpacket()
Dtxtimestamp.c255 msg.msg_control = ctrl; in recv_errmsg()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_sock_addr.c1041 hdr.msg_control = &control4; in sendmsg_to_server()
1044 hdr.msg_control = &control6; in sendmsg_to_server()
/Linux-v4.19/arch/um/os-Linux/
Dfile.c514 msg.msg_control = buf; in os_rcv_fd()

12