Home
last modified time | relevance | path

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

12

/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
Dsocket.h67 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/
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))
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/
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))
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/
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()
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/
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()
Dipv6_flowlabel.c52 struct cmsghdr *cm; in do_send()
80 struct cmsghdr *cm; in do_recv()
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()
Dnettest.c604 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()
Dso_txtime.c69 struct cmsghdr *cm; in do_send_one()
149 struct cmsghdr *cm; in do_recv_errqueue_timeout()
Dtimestamping.c140 struct cmsghdr *cmsg; in printpacket()
267 struct cmsghdr cm; in recvpacket()
Dtcp_inq.c103 struct cmsghdr *cm; in main()
Dudpgso_bench_rx.c220 struct cmsghdr *cmsg; in recv_msg()
Dtxtimestamp.c312 struct cmsghdr *cm; in __recv_errmsg_cmsg()
485 struct cmsghdr *cmsg; in do_test()
/kernel/linux/linux-5.10/net/
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()
/kernel/linux/linux-5.10/tools/testing/selftests/android/ion/
Dipcsocket.c110 struct cmsghdr *cmsg; in sendtosocket()
166 struct cmsghdr *cmsg; in receivefromsocket()
/kernel/linux/linux-5.10/samples/seccomp/
Duser-trap.c35 struct cmsghdr *cmsg; in send_fd()
64 struct cmsghdr *cmsg; in recv_fd()
/kernel/linux/linux-5.10/net/sunrpc/
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()
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/
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()
/kernel/linux/linux-5.10/net/rds/
Drds.h934 struct cmsghdr *cmsg);
936 struct cmsghdr *cmsg,
939 struct cmsghdr *cmsg);
945 struct cmsghdr *cmsg);
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()
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()
/kernel/linux/linux-5.10/Documentation/crypto/
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
/kernel/linux/linux-5.10/arch/um/os-Linux/drivers/
Dtuntap_user.c71 struct cmsghdr *cmsg; in tuntap_open_tramp()
/kernel/linux/linux-5.10/Documentation/networking/
Dtls.rst140 struct cmsghdr *cmsg;
189 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg);
/kernel/linux/linux-5.10/net/rxrpc/
Dsendmsg.c489 struct cmsghdr *cmsg; in rxrpc_sendmsg_cmsg()
500 len = cmsg->cmsg_len - sizeof(struct cmsghdr); in rxrpc_sendmsg_cmsg()

12