/openbmc/linux/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 104 struct cmsghdr { struct 121 ((void *)(cmsg) + sizeof(struct cmsghdr)) argument 123 ((void __user *)(cmsg) + sizeof(struct cmsghdr)) 124 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) 125 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) 127 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 128 (struct cmsghdr *)(ctl) : \ 129 (struct cmsghdr *)NULL) 131 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 153 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr() [all …]
|
/openbmc/linux/include/linux/ |
H A D | socket.h | 104 struct cmsghdr { struct 121 ((void *)(cmsg) + sizeof(struct cmsghdr)) argument 123 ((void __user *)(cmsg) + sizeof(struct cmsghdr)) 124 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len)) 125 #define CMSG_LEN(len) (sizeof(struct cmsghdr) + (len)) 127 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \ 128 (struct cmsghdr *)(ctl) : \ 129 (struct cmsghdr *)NULL) 131 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ 153 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr() [all …]
|
/openbmc/linux/net/core/ |
H A D | scm.c | 66 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp) in scm_fp_copy() 73 num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int); in scm_fp_copy() 140 struct cmsghdr *cmsg; in __scm_send() 227 if (!msg->msg_control || msg->msg_controllen < sizeof(struct cmsghdr)) { in put_cmsg() 237 struct cmsghdr __user *cm = msg->msg_control_user; in put_cmsg() 251 struct cmsghdr *cm = msg->msg_control; in put_cmsg() 304 if (msg->msg_controllen <= sizeof(struct cmsghdr)) in scm_max_fds() 306 return (msg->msg_controllen - sizeof(struct cmsghdr)) / sizeof(int); in scm_max_fds() 311 struct cmsghdr __user *cm = in scm_detach_fds() 312 (__force struct cmsghdr __user *)msg->msg_control_user; in scm_detach_fds()
|
/openbmc/linux/tools/testing/selftests/landlock/ |
H A D | common.h | 201 struct cmsghdr _align; in recv_fd() 214 struct cmsghdr *cmsg; in recv_fd() 235 struct cmsghdr _align; in send_fd() 248 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in send_fd()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/breakpad/breakpad/ |
H A D | 0001-Turn-off-sign-compare-for-musl-libc.patch | 9 … __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mh… 25 + // In musl-libc, CMSG_NXTHDR typecasts char* to cmsghdr* which causes 31 for (struct cmsghdr* hdr = CMSG_FIRSTHDR(&msg); hdr;
|
/openbmc/linux/tools/testing/selftests/net/ |
H A 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()
|
H A D | udpgso_bench_tx.c | 139 static void flush_cmsg(struct cmsghdr *cmsg) in flush_cmsg() 216 struct cmsghdr *cmsg; in flush_errqueue_recv() 314 static void send_ts_cmsg(struct cmsghdr *cm) in send_ts_cmsg() 339 struct cmsghdr *cmsg; in send_udp_sendmmsg() 378 static void send_udp_segment_cmsg(struct cmsghdr *cm) in send_udp_segment_cmsg() 396 struct cmsghdr *cmsg; in send_udp_segment()
|
H A D | ipv6_flowlabel.c | 75 struct cmsghdr *cm; in do_send() 103 struct cmsghdr *cm; in do_recv()
|
H A D | msg_zerocopy.c | 174 struct cmsghdr *cm; in add_zcopy_cookie() 201 msg->msg_control = (struct cmsghdr *)ckbuf; in do_sendmsg() 366 struct cmsghdr *cmsg; in do_recvmsg_completion() 399 struct cmsghdr *cm; in do_recv_completion()
|
H A D | nettest.c | 908 struct cmsghdr *cm; in get_index_from_cmsg() 912 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(m); in get_index_from_cmsg() 914 cm = (struct cmsghdr *)CMSG_NXTHDR(m, cm)) { in get_index_from_cmsg() 966 struct cmsghdr *cm; in send_msg_cmsg() 978 cm = (struct cmsghdr *)cmsgbuf; in send_msg_cmsg() 1062 struct cmsghdr *cm = (struct cmsghdr *)cmsgbuf; in socket_read_dgram()
|
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/libcamera/libcamera/ |
H A D | 0002-options-Replace-use-of-VLAs-in-C.patch | 89 struct cmsghdr *cmsg = (struct cmsghdr *)buf; 112 struct cmsghdr *cmsg = (struct cmsghdr *)buf;
|
/openbmc/linux/net/handshake/ |
H A D | alert.c | 39 struct cmsghdr *cmsg; in tls_alert_send() 74 u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *cmsg) in tls_get_record_type()
|
/openbmc/linux/net/ |
H A D | compat.c | 143 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern() 152 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern() 162 tmp = ((ucmlen - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern() 189 tmp = ((cmsg.cmsg_len - sizeof(*ucmsg)) + sizeof(struct cmsghdr)); in cmsghdr_from_user_compat_to_kern() 202 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern() 222 if (kcmsg_base != (struct cmsghdr *)stackbuf) in cmsghdr_from_user_compat_to_kern()
|
/openbmc/phosphor-net-ipmid/ |
H A D | socket_channel.hpp | 163 cmsghdr* cmsg; in read() 203 cmsghdr* cmsg = CMSG_FIRSTHDR(&msg); in write()
|
/openbmc/qemu/crypto/ |
H A D | afalgpriv.h | 41 struct cmsghdr *cmsg;
|
/openbmc/linux/net/sunrpc/ |
H A D | svcsock.c | 156 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data() 232 struct cmsghdr *cmsg, int ret) in svc_tcp_sock_process_cmsg() 263 struct cmsghdr cmsg; in svc_tcp_sock_recv_cmsg() 501 struct cmsghdr *cmh) in svc_udp_get_dest_address4() 518 struct cmsghdr *cmh) in svc_udp_get_dest_address6() 540 struct cmsghdr *cmh) in svc_udp_get_dest_address() 569 struct cmsghdr hdr; in svc_udp_recvfrom() 572 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_recvfrom() 692 struct cmsghdr hdr; in svc_udp_sendto() 695 struct cmsghdr *cmh = &buffer.hdr; in svc_udp_sendto()
|
/openbmc/linux/include/net/ |
H A D | handshake.h | 45 u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *msg);
|
/openbmc/linux/samples/seccomp/ |
H A D | user-trap.c | 35 struct cmsghdr *cmsg; in send_fd() 64 struct cmsghdr *cmsg; in recv_fd()
|
/openbmc/linux/net/rds/ |
H A D | rds.h | 933 struct cmsghdr *cmsg); 935 struct cmsghdr *cmsg, 938 struct cmsghdr *cmsg); 944 struct cmsghdr *cmsg);
|
H A D | rdma.c | 612 struct cmsghdr *cmsg, in rds_cmsg_rdma_args() 812 struct cmsghdr *cmsg) in rds_cmsg_rdma_dest() 855 struct cmsghdr *cmsg) in rds_cmsg_rdma_map() 869 struct cmsghdr *cmsg) in rds_cmsg_atomic()
|
/openbmc/linux/arch/um/os-Linux/ |
H A 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()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/lxdm/lxdm/ |
H A D | 0001-Initialize-msghdr-struct-in-a-portable-way.patch | 26 struct cmsghdr *cmptr;
|
/openbmc/qemu/contrib/ivshmem-client/ |
H A D | ivshmem-client.c | 32 struct cmsghdr cmsg; in ivshmem_client_read_one_msg() 35 struct cmsghdr *cmsg; in ivshmem_client_read_one_msg()
|
/openbmc/linux/Documentation/crypto/ |
H 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
|
/openbmc/qemu/contrib/ivshmem-server/ |
H A D | ivshmem-server.c | 38 struct cmsghdr cmsg; in ivshmem_server_send_one_msg() 41 struct cmsghdr *cmsg; in ivshmem_server_send_one_msg()
|