Home
last modified time | relevance | path

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

12

/linux/tools/perf/trace/beauty/include/linux/
A Dsocket.h92 struct cmsghdr { struct
109 ((void *)(cmsg) + sizeof(struct cmsghdr)) argument
111 ((void __user *)(cmsg) + sizeof(struct cmsghdr))
112 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len))
113 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len))
116 (struct cmsghdr *)(ctl) : \
117 (struct cmsghdr *)NULL)
142 struct cmsghdr *__cmsg) in __cmsg_nxthdr()
144 struct cmsghdr * __ptr; in __cmsg_nxthdr()
148 return (struct cmsghdr *)0; in __cmsg_nxthdr()
[all …]
/linux/include/linux/
A Dsocket.h92 struct cmsghdr { struct
109 ((void *)(cmsg) + sizeof(struct cmsghdr)) argument
111 ((void __user *)(cmsg) + sizeof(struct cmsghdr))
112 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len))
113 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len))
116 (struct cmsghdr *)(ctl) : \
117 (struct cmsghdr *)NULL)
142 struct cmsghdr *__cmsg) in __cmsg_nxthdr()
144 struct cmsghdr * __ptr; in __cmsg_nxthdr()
148 return (struct cmsghdr *)0; in __cmsg_nxthdr()
[all …]
/linux/net/core/
A 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()
220 if (!msg->msg_control || msg->msg_controllen < sizeof(struct cmsghdr)) { in put_cmsg()
230 struct cmsghdr __user *cm = msg->msg_control_user; in put_cmsg()
242 struct cmsghdr *cm = msg->msg_control; in put_cmsg()
292 if (msg->msg_controllen <= sizeof(struct cmsghdr)) in scm_max_fds()
294 return (msg->msg_controllen - sizeof(struct cmsghdr)) / sizeof(int); in scm_max_fds()
299 struct cmsghdr __user *cm = in scm_detach_fds()
300 (__force struct cmsghdr __user *)msg->msg_control; in scm_detach_fds()
/linux/tools/testing/selftests/net/
A 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()
A Dipv6_flowlabel.c52 struct cmsghdr *cm; in do_send()
80 struct cmsghdr *cm; in do_recv()
A Dmsg_zerocopy.c172 struct cmsghdr *cm; in add_zcopy_cookie()
199 msg->msg_control = (struct cmsghdr *)ckbuf; in do_sendmsg()
363 struct cmsghdr *cmsg; in do_recvmsg_completion()
396 struct cmsghdr *cm; in do_recv_completion()
A Dcmsg_so_mark.c15 struct cmsghdr *cmsg; in main()
A Dnettest.c836 struct cmsghdr *cm; in get_index_from_cmsg()
840 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(m); in get_index_from_cmsg()
842 cm = (struct cmsghdr *)CMSG_NXTHDR(m, cm)) { in get_index_from_cmsg()
894 struct cmsghdr *cm; in send_msg_cmsg()
906 cm = (struct cmsghdr *)cmsgbuf; in send_msg_cmsg()
985 struct cmsghdr *cm = (struct cmsghdr *)cmsgbuf; in socket_read_dgram()
A Dso_txtime.c78 struct cmsghdr *cm; in do_send_one()
161 struct cmsghdr *cm; in do_recv_errqueue_timeout()
A Dtimestamping.c159 struct cmsghdr *cmsg; in printpacket()
285 struct cmsghdr cm; in recvpacket()
A Dtcp_inq.c103 struct cmsghdr *cm; in main()
A Dtxtimestamp.c312 struct cmsghdr *cm; in __recv_errmsg_cmsg()
485 struct cmsghdr *cmsg; in do_test()
/linux/net/
A Dcompat.c145 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern()
154 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern()
164 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern()
191 tmp = ((cmsg.cmsg_len - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern()
204 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern()
223 if (kcmsg_base != (struct cmsghdr *)stackbuf) in cmsghdr_from_user_compat_to_kern()
/linux/net/sunrpc/
A Dsvcsock.c153 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data()
370 struct cmsghdr *cmh) in svc_udp_get_dest_address4()
387 struct cmsghdr *cmh) in svc_udp_get_dest_address6()
409 struct cmsghdr *cmh) in svc_udp_get_dest_address()
438 struct cmsghdr hdr; in svc_udp_recvfrom()
441 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_recvfrom()
560 struct cmsghdr hdr; in svc_udp_sendto()
563 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_sendto()
/linux/samples/seccomp/
A Duser-trap.c35 struct cmsghdr *cmsg; in send_fd()
64 struct cmsghdr *cmsg; in recv_fd()
/linux/tools/testing/selftests/landlock/
A Dbase_test.c179 struct cmsghdr _align; in TEST()
192 struct cmsghdr *cmsg; in TEST()
/linux/Documentation/crypto/
A 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/net/rds/
A Drds.h934 struct cmsghdr *cmsg);
936 struct cmsghdr *cmsg,
939 struct cmsghdr *cmsg);
945 struct cmsghdr *cmsg);
A Drdma.c609 struct cmsghdr *cmsg, in rds_cmsg_rdma_args()
809 struct cmsghdr *cmsg) in rds_cmsg_rdma_dest()
852 struct cmsghdr *cmsg) in rds_cmsg_rdma_map()
866 struct cmsghdr *cmsg) in rds_cmsg_atomic()
A 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/arch/um/os-Linux/
A Dfile.c510 struct cmsghdr *cmsg; in os_rcv_fd()
646 struct cmsghdr align; in os_sendmsg_fds()
655 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in os_sendmsg_fds()
/linux/samples/bpf/
A Dxdpsock_ctrl_proc.c81 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in send_xsks_map_fd()
/linux/arch/um/os-Linux/drivers/
A Dtuntap_user.c71 struct cmsghdr *cmsg; in tuntap_open_tramp()
/linux/tools/testing/selftests/bpf/
A Dtest_sock_addr.c995 int init_pktinfo(int domain, struct cmsghdr *cmsg) in init_pktinfo()
1031 struct cmsghdr align; in sendmsg_to_server()
1035 struct cmsghdr align; in sendmsg_to_server()
/linux/Documentation/networking/
A Dtls.rst140 struct cmsghdr *cmsg;
189 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);

Completed in 51 milliseconds

12