Home
last modified time | relevance | path

Searched refs:cmsghdr (Results 1 – 25 of 40) sorted by relevance

12

/Linux-v5.4/include/linux/
Dsocket.h81 struct cmsghdr { struct
97 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + sizeof(struct cmsghdr))) argument
98 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len))
99 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len))
101 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \
102 (struct cmsghdr *)(ctl) : \
103 (struct cmsghdr *)NULL)
105 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \
127 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr()
128 struct cmsghdr *__cmsg) in __cmsg_nxthdr()
[all …]
/Linux-v5.4/net/core/
Dscm.c65 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp) in scm_fp_copy()
72 num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int); in scm_fp_copy()
133 struct cmsghdr *cmsg; in __scm_send()
215 struct cmsghdr __user *cm in put_cmsg()
216 = (__force struct cmsghdr __user *)msg->msg_control; in put_cmsg()
217 struct cmsghdr cmhdr; in put_cmsg()
239 if (copy_to_user(CMSG_DATA(cm), data, cmlen - sizeof(struct cmsghdr))) in put_cmsg()
280 struct cmsghdr __user *cm in scm_detach_fds()
281 = (__force struct cmsghdr __user*)msg->msg_control; in scm_detach_fds()
294 if (msg->msg_controllen > sizeof(struct cmsghdr)) in scm_detach_fds()
[all …]
/Linux-v5.4/tools/testing/selftests/net/
Dudpgso_bench_tx.c138 static void flush_cmsg(struct cmsghdr *cmsg) in flush_cmsg()
215 struct cmsghdr *cmsg; in flush_errqueue_recv()
298 static void send_ts_cmsg(struct cmsghdr *cm) in send_ts_cmsg()
323 struct cmsghdr *cmsg; in send_udp_sendmmsg()
362 static void send_udp_segment_cmsg(struct cmsghdr *cm) in send_udp_segment_cmsg()
380 struct cmsghdr *cmsg; in send_udp_segment()
Dipv6_flowlabel.c52 struct cmsghdr *cm; in do_send()
80 struct cmsghdr *cm; in do_recv()
Dnettest.c584 struct cmsghdr *cm; in get_index_from_cmsg()
588 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(m); in get_index_from_cmsg()
590 cm = (struct cmsghdr *)CMSG_NXTHDR(m, cm)) { in get_index_from_cmsg()
642 struct cmsghdr *cm; in send_msg_cmsg()
654 cm = (struct cmsghdr *)cmsgbuf; in send_msg_cmsg()
733 struct cmsghdr *cm = (struct cmsghdr *)cmsgbuf; in socket_read_dgram()
Dmsg_zerocopy.c173 struct cmsghdr *cm; in add_zcopy_cookie()
200 msg->msg_control = (struct cmsghdr *)ckbuf; in do_sendmsg()
364 struct cmsghdr *cmsg; in do_recvmsg_completion()
397 struct cmsghdr *cm; in do_recv_completion()
Dtcp_inq.c103 struct cmsghdr *cm; in main()
Dso_txtime.c61 struct cmsghdr *cm; in do_send_one()
Dudpgso_bench_rx.c217 struct cmsghdr *cmsg; in recv_msg()
/Linux-v5.4/tools/testing/selftests/android/ion/
Dipcsocket.c110 struct cmsghdr *cmsg; in sendtosocket()
166 struct cmsghdr *cmsg; in receivefromsocket()
/Linux-v5.4/net/
Dcompat.c128 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern()
137 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern()
147 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern()
173 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern()
186 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern()
205 if (kcmsg_base != (struct cmsghdr *)stackbuf) in cmsghdr_from_user_compat_to_kern()
/Linux-v5.4/samples/seccomp/
Duser-trap.c35 struct cmsghdr *cmsg; in send_fd()
64 struct cmsghdr *cmsg; in recv_fd()
/Linux-v5.4/net/sunrpc/
Dsvcsock.c146 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data()
245 struct cmsghdr hdr; in svc_sendto()
248 struct cmsghdr *cmh = &buffer.hdr; in svc_sendto()
441 struct cmsghdr *cmh) in svc_udp_get_dest_address4()
458 struct cmsghdr *cmh) in svc_udp_get_dest_address6()
480 struct cmsghdr *cmh) in svc_udp_get_dest_address()
502 struct cmsghdr hdr; in svc_udp_recvfrom()
505 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_recvfrom()
/Linux-v5.4/arch/um/os-Linux/
Dfile.c506 struct cmsghdr *cmsg; in os_rcv_fd()
642 struct cmsghdr align; in os_sendmsg_fds()
651 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in os_sendmsg_fds()
/Linux-v5.4/net/rds/
Drdma.c573 struct cmsghdr *cmsg, in rds_cmsg_rdma_args()
729 struct cmsghdr *cmsg) in rds_cmsg_rdma_dest()
771 struct cmsghdr *cmsg) in rds_cmsg_rdma_map()
785 struct cmsghdr *cmsg) in rds_cmsg_atomic()
Drds.h933 struct cmsghdr *cmsg);
935 struct cmsghdr *cmsg,
938 struct cmsghdr *cmsg);
944 struct cmsghdr *cmsg);
Dsend.c892 struct cmsghdr *cmsg; in rds_rm_size()
972 struct cmsghdr *cmsg) in rds_cmsg_zcopy()
988 struct cmsghdr *cmsg; in rds_cmsg_send()
1081 struct cmsghdr *cmsg; in rds_rdma_bytes()
/Linux-v5.4/Documentation/crypto/
Duserspace-if.rst163 struct cmsghdr data structure. See recv(2) and cmsg(3) for more
164 information on how the cmsghdr data structure is used together with the
165 send/recv system call family. That cmsghdr data structure holds the
222 struct cmsghdr data structure. See recv(2) and cmsg(3) for more
223 information on how the cmsghdr data structure is used together with the
224 send/recv system call family. That cmsghdr data structure holds the
/Linux-v5.4/tools/testing/selftests/networking/timestamping/
Dtimestamping.c140 struct cmsghdr *cmsg; in printpacket()
267 struct cmsghdr cm; in recvpacket()
Dtxtimestamp.c217 struct cmsghdr *cm; in __recv_errmsg_cmsg()
390 struct cmsghdr *cmsg; in do_test()
Drxtimestamp.c178 struct cmsghdr *cmsg; in do_recv()
/Linux-v5.4/arch/um/os-Linux/drivers/
Dtuntap_user.c71 struct cmsghdr *cmsg; in tuntap_open_tramp()
/Linux-v5.4/Documentation/networking/
Dtls.rst140 struct cmsghdr *cmsg;
189 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
/Linux-v5.4/net/rxrpc/
Dsendmsg.c462 struct cmsghdr *cmsg; in rxrpc_sendmsg_cmsg()
473 len = cmsg->cmsg_len - sizeof(struct cmsghdr); in rxrpc_sendmsg_cmsg()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_sock_addr.c1211 int init_pktinfo(int domain, struct cmsghdr *cmsg) in init_pktinfo()
1247 struct cmsghdr align; in sendmsg_to_server()
1251 struct cmsghdr align; in sendmsg_to_server()

12