/Linux-v6.1/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 101 struct cmsghdr { struct 118 ((void *)(cmsg) + sizeof(struct cmsghdr)) argument 120 ((void __user *)(cmsg) + sizeof(struct cmsghdr)) 121 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) 122 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) 124 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 125 (struct cmsghdr *)(ctl) : \ 126 (struct cmsghdr *)NULL) 128 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 150 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr() [all …]
|
/Linux-v6.1/include/linux/ |
D | socket.h | 101 struct cmsghdr { struct 118 ((void *)(cmsg) + sizeof(struct cmsghdr)) argument 120 ((void __user *)(cmsg) + sizeof(struct cmsghdr)) 121 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) 122 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) 124 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 125 (struct cmsghdr *)(ctl) : \ 126 (struct cmsghdr *)NULL) 128 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 150 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr() [all …]
|
/Linux-v6.1/net/core/ |
D | scm.c | 65 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-v6.1/tools/testing/selftests/net/ |
D | cmsg_sender.c | 220 struct cmsghdr *cmsg; in ca_write_cmsg_u32() 225 cmsg = (struct cmsghdr *)(cbuf + *cmsg_len); in ca_write_cmsg_u32() 239 struct cmsghdr *cmsg; in cs_write_cmsg() 268 cmsg = (struct cmsghdr *)(cbuf + cmsg_len); in cs_write_cmsg() 286 cmsg = (struct cmsghdr *)(cbuf + cmsg_len); in cs_write_cmsg() 298 cmsg = (struct cmsghdr *)(cbuf + cmsg_len); in cs_write_cmsg() 333 struct cmsghdr *cmsg; in cs_read_cmsg()
|
D | udpgso_bench_tx.c | 138 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()
|
D | ipv6_flowlabel.c | 75 struct cmsghdr *cm; in do_send() 103 struct cmsghdr *cm; in do_recv()
|
D | msg_zerocopy.c | 172 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()
|
D | nettest.c | 863 struct cmsghdr *cm; in get_index_from_cmsg() 867 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(m); in get_index_from_cmsg() 869 cm = (struct cmsghdr *)CMSG_NXTHDR(m, cm)) { in get_index_from_cmsg() 921 struct cmsghdr *cm; in send_msg_cmsg() 933 cm = (struct cmsghdr *)cmsgbuf; in send_msg_cmsg() 1017 struct cmsghdr *cm = (struct cmsghdr *)cmsgbuf; in socket_read_dgram()
|
D | so_txtime.c | 78 struct cmsghdr *cm; in do_send_one() 161 struct cmsghdr *cm; in do_recv_errqueue_timeout()
|
D | timestamping.c | 159 struct cmsghdr *cmsg; in printpacket() 285 struct cmsghdr cm; in recvpacket()
|
D | tcp_inq.c | 103 struct cmsghdr *cm; in main()
|
D | udpgso_bench_rx.c | 220 struct cmsghdr *cmsg; in recv_msg()
|
D | txtimestamp.c | 312 struct cmsghdr *cm; in __recv_errmsg_cmsg() 485 struct cmsghdr *cmsg; in do_test()
|
/Linux-v6.1/net/ |
D | compat.c | 142 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern() 151 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern() 161 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern() 188 tmp = ((cmsg.cmsg_len - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern() 201 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern() 220 if (kcmsg_base != (struct cmsghdr *)stackbuf) in cmsghdr_from_user_compat_to_kern()
|
/Linux-v6.1/samples/seccomp/ |
D | user-trap.c | 35 struct cmsghdr *cmsg; in send_fd() 64 struct cmsghdr *cmsg; in recv_fd()
|
/Linux-v6.1/net/sunrpc/ |
D | svcsock.c | 144 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data() 359 struct cmsghdr *cmh) in svc_udp_get_dest_address4() 376 struct cmsghdr *cmh) in svc_udp_get_dest_address6() 398 struct cmsghdr *cmh) in svc_udp_get_dest_address() 427 struct cmsghdr hdr; in svc_udp_recvfrom() 430 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_recvfrom() 549 struct cmsghdr hdr; in svc_udp_sendto() 552 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_sendto()
|
/Linux-v6.1/tools/testing/selftests/landlock/ |
D | base_test.c | 269 struct cmsghdr _align; in TEST() 282 struct cmsghdr *cmsg; in TEST()
|
/Linux-v6.1/arch/um/os-Linux/ |
D | file.c | 510 struct cmsghdr *cmsg; in os_rcv_fd() 655 struct cmsghdr align; in os_sendmsg_fds() 664 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in os_sendmsg_fds()
|
/Linux-v6.1/net/rds/ |
D | rds.h | 934 struct cmsghdr *cmsg); 936 struct cmsghdr *cmsg, 939 struct cmsghdr *cmsg); 945 struct cmsghdr *cmsg);
|
D | rdma.c | 609 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()
|
D | send.c | 892 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-v6.1/Documentation/crypto/ |
D | userspace-if.rst | 163 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-v6.1/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 71 struct cmsghdr *cmsg; in tuntap_open_tramp()
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_sock_addr.c | 1004 int init_pktinfo(int domain, struct cmsghdr *cmsg) in init_pktinfo() 1040 struct cmsghdr align; in sendmsg_to_server() 1044 struct cmsghdr align; in sendmsg_to_server()
|
/Linux-v6.1/Documentation/networking/ |
D | tls.rst | 140 struct cmsghdr *cmsg; 189 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
|