Home
last modified time | relevance | path

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

12

/kernel/liteos_a/syscall/
Dnet_syscall.c411 CHECK_FIELD_ASPACE(message, msg_control, message->msg_controllen); in SysSendMsg()
418 DUP_FIELD_FROM_USER(message, msg_control, message->msg_controllen, in SysSendMsg()
422 FREE_DUP_FIELD(message, msg_control); in SysSendMsg()
433 FREE_DUP_FIELD(message, msg_control); in SysSendMsg()
459 CHECK_FIELD_ASPACE(message, msg_control, message->msg_controllen); in SysRecvMsg()
466 DUP_FIELD_FROM_USER_NOCOPY(message, msg_control, message->msg_controllen, in SysRecvMsg()
470 FREE_DUP_FIELD(message, msg_control); in SysRecvMsg()
485 DUP_FIELD_TO_USER(message, msg_control, message->msg_controllen, ret = -1; goto OUT); in SysRecvMsg()
491 FREE_DUP_FIELD(message, msg_control); in SysRecvMsg()
/kernel/linux/linux-5.10/net/
Dcompat.c60 kmsg->msg_control_user = compat_ptr(msg.msg_control); in __get_compat_msghdr()
118 (struct compat_cmsghdr __user *)((msg)->msg_control) : \
131 if ((unsigned long)(ptr + 1 - (char __user *)msg->msg_control) > in cmsg_compat_nxthdr()
216 kmsg->msg_control = kcmsg_base; in cmsghdr_from_user_compat_to_kern()
230 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in put_cmsg_compat()
279 kmsg->msg_control += cmlen; in put_cmsg_compat()
294 (struct compat_cmsghdr __user *)msg->msg_control; in scm_detach_fds_compat()
318 msg->msg_control += cmlen; in scm_detach_fds_compat()
/kernel/linux/linux-5.10/include/linux/
Dsocket.h61 void *msg_control; member
75 void __user *msg_control; /* ancillary data */ member
118 #define CMSG_FIRSTHDR(msg) __CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen)
122 ((char *)(cmsg) - (char *)(mhdr)->msg_control)))
155 return __cmsg_nxthdr(__msg->msg_control, __msg->msg_controllen, __cmsg); in cmsg_nxthdr()
/kernel/linux/linux-5.10/tools/perf/trace/beauty/include/linux/
Dsocket.h61 void *msg_control; member
75 void __user *msg_control; /* ancillary data */ member
118 #define CMSG_FIRSTHDR(msg) __CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen)
122 ((char *)(cmsg) - (char *)(mhdr)->msg_control)))
155 return __cmsg_nxthdr(__msg->msg_control, __msg->msg_controllen, __cmsg); in cmsg_nxthdr()
/kernel/linux/linux-5.10/net/core/
Dscm.c226 if (!msg->msg_control || msg->msg_controllen < sizeof(struct cmsghdr)) { in put_cmsg()
246 struct cmsghdr *cm = msg->msg_control; in put_cmsg()
255 msg->msg_control += cmlen; in put_cmsg()
299 (__force struct cmsghdr __user *)msg->msg_control; in scm_detach_fds()
332 msg->msg_control += cmlen; in scm_detach_fds()
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
Dsocket.h56 void *msg_control; member
207 #define __MHDR_END(mhdr) ((unsigned char *)(mhdr)->msg_control + (mhdr)->msg_controllen)
213 …msg_controllen >= sizeof (struct cmsghdr) ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsgh…
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dmsg_zerocopy.c174 if (!msg->msg_control) in add_zcopy_cookie()
176 cm = (void *)msg->msg_control; in add_zcopy_cookie()
197 memset(&msg->msg_control, 0, sizeof(msg->msg_control)); in do_sendmsg()
199 msg->msg_control = (struct cmsghdr *)ckbuf; in do_sendmsg()
219 msg->msg_control = NULL; in do_sendmsg()
368 msg.msg_control = cmsgbuf; in do_recvmsg_completion()
404 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()
Dso_txtime.c81 msg.msg_control = &control; in do_send_one()
159 msg.msg_control = control; in do_recv_errqueue_timeout()
Dtcp_inq.c153 msg.msg_control = cmsgbuf; in main()
/kernel/linux/linux-5.10/tools/testing/selftests/android/ion/
Dipcsocket.c138 msgh.msg_control = &cmsg_b; in sendtosocket()
191 msgh.msg_control = &cmsg_b; in receivefromsocket()
/kernel/linux/linux-5.10/net/rxrpc/
Doutput.c203 msg.msg_control = NULL; in rxrpc_send_ack_packet()
312 msg.msg_control = NULL; in rxrpc_send_abort_packet()
397 msg.msg_control = NULL; in rxrpc_send_data_packet()
575 msg.msg_control = NULL; in rxrpc_reject_packets()
644 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()
/kernel/linux/linux-5.10/samples/seccomp/
Duser-trap.c44 msg.msg_control = buf; in send_fd()
73 msg.msg_control = buf; in recv_fd()
/kernel/linux/linux-5.10/include/net/
Dcompat.h17 compat_uptr_t msg_control; /* void * */ member
Dscm.h116 if (!msg->msg_control) { in scm_recv()
/kernel/linux/linux-5.10/drivers/net/
Dtap.c620 static ssize_t tap_get_user(struct tap_queue *q, void *msg_control, in tap_get_user() argument
664 if (msg_control && sock_flag(&q->sk, SOCK_ZEROCOPY)) { in tap_get_user()
725 skb_shinfo(skb)->destructor_arg = msg_control; in tap_get_user()
728 } else if (msg_control) { in tap_get_user()
729 struct ubuf_info *uarg = msg_control; in tap_get_user()
1201 struct tun_msg_ctl *ctl = m->msg_control; in tap_sendmsg()
1222 struct sk_buff *skb = m->msg_control; in tap_recvmsg()
/kernel/linux/linux-5.10/drivers/vhost/
Dnet.c474 msghdr->msg_control = &ctl; in vhost_tx_batch()
777 .msg_control = NULL, in handle_tx_copy()
830 msg.msg_control = NULL; in handle_tx_copy()
866 .msg_control = NULL, in handle_tx_zerocopy()
914 msg.msg_control = &ctl; in handle_tx_zerocopy()
922 msg.msg_control = NULL; in handle_tx_zerocopy()
1115 .msg_control = NULL, /* FIXME: get and handle RX aux data. */ in handle_rx()
1181 msg.msg_control = vhost_net_buf_consume(&nvq->rxq); in handle_rx()
/kernel/linux/linux-5.10/arch/um/os-Linux/drivers/
Dtuntap_user.c98 msg.msg_control = buf; in tuntap_open_tramp()
/kernel/linux/linux-5.10/fs/afs/
Drxrpc.c441 msg.msg_control = NULL; in afs_make_call()
858 msg.msg_control = NULL; in afs_send_empty_reply()
898 msg.msg_control = NULL; in afs_send_simple_reply()
/kernel/linux/linux-5.10/arch/um/drivers/
Dmconsole_user.c52 msg.msg_control = NULL; in mconsole_reply_v0()
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dfile.c519 msg.msg_control = buf; in os_rcv_fd()
652 .msg_control = u.control, in os_sendmsg_fds()
/kernel/linux/linux-5.10/Documentation/networking/
Dtls.rst144 msg.msg_control = buf;
177 msg.msg_control = cmsg;

12