/Linux-v4.19/include/linux/ |
D | socket.h | 80 struct cmsghdr { struct 96 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + sizeof(struct cmsghdr))) argument 97 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) 98 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) 100 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 101 (struct cmsghdr *)(ctl) : \ 102 (struct cmsghdr *)NULL) 104 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 126 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr() 127 struct cmsghdr *__cmsg) in __cmsg_nxthdr() [all …]
|
/Linux-v4.19/net/core/ |
D | scm.c | 68 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp) in scm_fp_copy() 75 num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int); in scm_fp_copy() 136 struct cmsghdr *cmsg; in __scm_send() 218 struct cmsghdr __user *cm in put_cmsg() 219 = (__force struct cmsghdr __user *)msg->msg_control; in put_cmsg() 220 struct cmsghdr cmhdr; in put_cmsg() 242 if (copy_to_user(CMSG_DATA(cm), data, cmlen - sizeof(struct cmsghdr))) in put_cmsg() 257 struct cmsghdr __user *cm in scm_detach_fds() 258 = (__force struct cmsghdr __user*)msg->msg_control; in scm_detach_fds() 271 if (msg->msg_controllen > sizeof(struct cmsghdr)) in scm_detach_fds() [all …]
|
/Linux-v4.19/tools/testing/selftests/android/ion/ |
D | ipcsocket.c | 110 struct cmsghdr *cmsg; in sendtosocket() 166 struct cmsghdr *cmsg; in receivefromsocket()
|
/Linux-v4.19/net/rds/ |
D | rds.h | 909 struct cmsghdr *cmsg); 911 struct cmsghdr *cmsg); 913 struct cmsghdr *cmsg); 915 struct cmsghdr *cmsg); 921 struct cmsghdr *cmsg);
|
D | rdma.c | 561 struct cmsghdr *cmsg) in rds_cmsg_rdma_args() 739 struct cmsghdr *cmsg) in rds_cmsg_rdma_dest() 781 struct cmsghdr *cmsg) in rds_cmsg_rdma_map() 795 struct cmsghdr *cmsg) in rds_cmsg_atomic()
|
D | send.c | 881 struct cmsghdr *cmsg; in rds_rm_size() 941 struct cmsghdr *cmsg) in rds_cmsg_zcopy() 956 struct cmsghdr *cmsg; in rds_cmsg_send() 1046 struct cmsghdr *cmsg; in rds_rdma_bytes()
|
/Linux-v4.19/net/ |
D | compat.c | 126 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern() 135 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern() 145 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern() 171 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern() 184 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern() 203 if (kcmsg_base != (struct cmsghdr *)stackbuf) in cmsghdr_from_user_compat_to_kern()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | msg_zerocopy.c | 173 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()
|
D | tcp_inq.c | 113 struct cmsghdr *cm; in main()
|
D | udpgso_bench_tx.c | 202 static void send_udp_segment_cmsg(struct cmsghdr *cm) in send_udp_segment_cmsg()
|
D | udpgso.c | 465 struct cmsghdr *cm; in send_one()
|
D | tls.c | 705 struct cmsghdr *cmsg; in TEST_F()
|
/Linux-v4.19/net/sunrpc/ |
D | svcsock.c | 152 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data() 251 struct cmsghdr hdr; in svc_sendto() 254 struct cmsghdr *cmh = &buffer.hdr; in svc_sendto() 468 struct cmsghdr *cmh) in svc_udp_get_dest_address4() 485 struct cmsghdr *cmh) in svc_udp_get_dest_address6() 507 struct cmsghdr *cmh) in svc_udp_get_dest_address() 529 struct cmsghdr hdr; in svc_udp_recvfrom() 532 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_recvfrom()
|
/Linux-v4.19/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-v4.19/tools/testing/selftests/networking/timestamping/ |
D | timestamping.c | 159 struct cmsghdr *cmsg; in printpacket() 286 struct cmsghdr cm; in recvpacket()
|
D | rxtimestamp.c | 177 struct cmsghdr *cmsg; in do_recv()
|
D | txtimestamp.c | 185 struct cmsghdr *cm; in __recv_errmsg_cmsg()
|
/Linux-v4.19/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 71 struct cmsghdr *cmsg; in tuntap_open_tramp()
|
/Linux-v4.19/Documentation/networking/ |
D | tls.txt | 122 struct cmsghdr *cmsg; 169 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
|
D | msg_zerocopy.rst | 190 struct cmsghdr *cm;
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_sock_addr.c | 968 int init_pktinfo(int domain, struct cmsghdr *cmsg) in init_pktinfo() 1004 struct cmsghdr align; in sendmsg_to_server() 1008 struct cmsghdr align; in sendmsg_to_server()
|
/Linux-v4.19/net/rxrpc/ |
D | sendmsg.c | 462 struct cmsghdr *cmsg; in rxrpc_sendmsg_cmsg() 473 len = cmsg->cmsg_len - sizeof(struct cmsghdr); in rxrpc_sendmsg_cmsg()
|
/Linux-v4.19/arch/um/os-Linux/ |
D | file.c | 505 struct cmsghdr *cmsg; in os_rcv_fd()
|
/Linux-v4.19/net/tls/ |
D | tls_main.c | 164 struct cmsghdr *cmsg; in tls_proccess_cmsg()
|
/Linux-v4.19/net/ipv4/ |
D | ip_sockglue.c | 248 struct cmsghdr *cmsg; in ip_cmsg_send() 282 err = cmsg->cmsg_len - sizeof(struct cmsghdr); in ip_cmsg_send()
|