| /linux/tools/perf/trace/beauty/include/linux/ |
| A D | socket.h | 92 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 D | socket.h | 92 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 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/tools/testing/selftests/net/ |
| A 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()
|
| A D | ipv6_flowlabel.c | 52 struct cmsghdr *cm; in do_send() 80 struct cmsghdr *cm; in do_recv()
|
| A 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()
|
| A D | cmsg_so_mark.c | 15 struct cmsghdr *cmsg; in main()
|
| A D | nettest.c | 836 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 D | so_txtime.c | 78 struct cmsghdr *cm; in do_send_one() 161 struct cmsghdr *cm; in do_recv_errqueue_timeout()
|
| A D | timestamping.c | 159 struct cmsghdr *cmsg; in printpacket() 285 struct cmsghdr cm; in recvpacket()
|
| A D | tcp_inq.c | 103 struct cmsghdr *cm; in main()
|
| A D | txtimestamp.c | 312 struct cmsghdr *cm; in __recv_errmsg_cmsg() 485 struct cmsghdr *cmsg; in do_test()
|
| /linux/net/ |
| A D | compat.c | 145 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 D | svcsock.c | 153 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 D | user-trap.c | 35 struct cmsghdr *cmsg; in send_fd() 64 struct cmsghdr *cmsg; in recv_fd()
|
| /linux/tools/testing/selftests/landlock/ |
| A D | base_test.c | 179 struct cmsghdr _align; in TEST() 192 struct cmsghdr *cmsg; in TEST()
|
| /linux/Documentation/crypto/ |
| A 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/net/rds/ |
| A D | rds.h | 934 struct cmsghdr *cmsg); 936 struct cmsghdr *cmsg, 939 struct cmsghdr *cmsg); 945 struct cmsghdr *cmsg);
|
| A 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()
|
| A 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/arch/um/os-Linux/ |
| A D | file.c | 510 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 D | xdpsock_ctrl_proc.c | 81 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in send_xsks_map_fd()
|
| /linux/arch/um/os-Linux/drivers/ |
| A D | tuntap_user.c | 71 struct cmsghdr *cmsg; in tuntap_open_tramp()
|
| /linux/tools/testing/selftests/bpf/ |
| A D | test_sock_addr.c | 995 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 D | tls.rst | 140 struct cmsghdr *cmsg; 189 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
|