/kernel/liteos_m/kal/libc/newlib/porting/include/sys/ |
D | socket.h | 67 struct cmsghdr { struct 209 #define CMSG_DATA(cmsg) ((unsigned char *) (((struct cmsghdr *)(cmsg)) + 1)) 210 #define CMSG_NXTHDR(mhdr, cmsg) ((cmsg)->cmsg_len < sizeof (struct cmsghdr) || \ 211 __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \ 212 ? 0 : (struct cmsghdr *)__CMSG_NEXT(cmsg)) 213 …) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) ? (struct cmsghdr *) (mhdr)->msg_control : (st… 216 #define CMSG_SPACE(len) (CMSG_ALIGN (len) + CMSG_ALIGN (sizeof (struct cmsghdr))) 217 #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
|
/kernel/linux/linux-5.10/include/linux/ |
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)) 115 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 116 (struct cmsghdr *)(ctl) : \ 117 (struct cmsghdr *)NULL) 119 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 141 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr() [all …]
|
/kernel/linux/linux-5.10/tools/perf/trace/beauty/include/linux/ |
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)) 115 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 116 (struct cmsghdr *)(ctl) : \ 117 (struct cmsghdr *)NULL) 119 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 141 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr() [all …]
|
/kernel/linux/linux-5.10/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() 231 struct cmsghdr cmhdr; in put_cmsg() 240 struct cmsghdr *cm = msg->msg_control; in put_cmsg() 285 if (msg->msg_controllen <= sizeof(struct cmsghdr)) in scm_max_fds() 287 return (msg->msg_controllen - sizeof(struct cmsghdr)) / sizeof(int); in scm_max_fds() 292 struct cmsghdr __user *cm = in scm_detach_fds() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
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 | 52 struct cmsghdr *cm; in do_send() 80 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 | 604 struct cmsghdr *cm; in get_index_from_cmsg() 608 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(m); in get_index_from_cmsg() 610 cm = (struct cmsghdr *)CMSG_NXTHDR(m, cm)) { in get_index_from_cmsg() 662 struct cmsghdr *cm; in send_msg_cmsg() 674 cm = (struct cmsghdr *)cmsgbuf; in send_msg_cmsg() 753 struct cmsghdr *cm = (struct cmsghdr *)cmsgbuf; in socket_read_dgram()
|
D | so_txtime.c | 69 struct cmsghdr *cm; in do_send_one() 149 struct cmsghdr *cm; in do_recv_errqueue_timeout()
|
D | timestamping.c | 140 struct cmsghdr *cmsg; in printpacket() 267 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()
|
/kernel/linux/linux-5.10/net/ |
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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/android/ion/ |
D | ipcsocket.c | 110 struct cmsghdr *cmsg; in sendtosocket() 166 struct cmsghdr *cmsg; in receivefromsocket()
|
/kernel/linux/linux-5.10/samples/seccomp/ |
D | user-trap.c | 35 struct cmsghdr *cmsg; in send_fd() 64 struct cmsghdr *cmsg; in recv_fd()
|
/kernel/linux/linux-5.10/net/sunrpc/ |
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() 557 struct cmsghdr hdr; in svc_udp_sendto() 560 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_sendto()
|
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/arch/um/os-Linux/drivers/ |
D | tuntap_user.c | 71 struct cmsghdr *cmsg; in tuntap_open_tramp()
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | tls.rst | 140 struct cmsghdr *cmsg; 189 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
|
/kernel/linux/linux-5.10/net/rxrpc/ |
D | sendmsg.c | 489 struct cmsghdr *cmsg; in rxrpc_sendmsg_cmsg() 500 len = cmsg->cmsg_len - sizeof(struct cmsghdr); in rxrpc_sendmsg_cmsg()
|