Searched refs:cmsghdr (Results 1 – 21 of 21) sorted by relevance
79 struct cmsghdr { struct95 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) argument96 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))97 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))99 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? \100 (struct cmsghdr *)(ctl) : \101 (struct cmsghdr *)NULL)103 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \125 static inline struct cmsghdr * __cmsg_nxthdr(void *__ctl, __kernel_size_t __size, in __cmsg_nxthdr()126 struct cmsghdr *__cmsg) in __cmsg_nxthdr()[all …]
67 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp) in scm_fp_copy()74 num = (cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)))/sizeof(int); in scm_fp_copy()135 struct cmsghdr *cmsg; in __scm_send()217 struct cmsghdr __user *cm in put_cmsg()218 = (__force struct cmsghdr __user *)msg->msg_control; in put_cmsg()219 struct cmsghdr cmhdr; in put_cmsg()241 if (copy_to_user(CMSG_DATA(cm), data, cmlen - sizeof(struct cmsghdr))) in put_cmsg()256 struct cmsghdr __user *cm in scm_detach_fds()257 = (__force struct cmsghdr __user*)msg->msg_control; in scm_detach_fds()270 if (msg->msg_controllen > sizeof(struct cmsghdr)) in scm_detach_fds()[all …]
1895 struct cmsghdr *cmsg; in sock_cmsg_send()
753 struct cmsghdr *cmsg);755 struct cmsghdr *cmsg);757 struct cmsghdr *cmsg);759 struct cmsghdr *cmsg);765 struct cmsghdr *cmsg);
548 struct cmsghdr *cmsg) in rds_cmsg_rdma_args()716 struct cmsghdr *cmsg) in rds_cmsg_rdma_dest()758 struct cmsghdr *cmsg) in rds_cmsg_rdma_map()771 struct cmsghdr *cmsg) in rds_cmsg_atomic()
880 struct cmsghdr *cmsg; in rds_rm_size()934 struct cmsghdr *cmsg; in rds_cmsg_send()
128 struct cmsghdr *kcmsg, *kcmsg_base; in cmsghdr_from_user_compat_to_kern()134 kcmsg_base = kcmsg = (struct cmsghdr *)stackbuf; in cmsghdr_from_user_compat_to_kern()145 CMSG_ALIGN(sizeof(struct cmsghdr))); in cmsghdr_from_user_compat_to_kern()172 CMSG_ALIGN(sizeof(struct cmsghdr))); in cmsghdr_from_user_compat_to_kern()185 kcmsg = (struct cmsghdr *)((char *)kcmsg + tmp); in cmsghdr_from_user_compat_to_kern()197 if (kcmsg_base != (struct cmsghdr *)stackbuf) in cmsghdr_from_user_compat_to_kern()
1883 unsigned char ctl[sizeof(struct cmsghdr) + 20] in ___sys_sendmsg()
141 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data()240 struct cmsghdr hdr; in svc_sendto()243 struct cmsghdr *cmh = &buffer.hdr; in svc_sendto()508 struct cmsghdr *cmh) in svc_udp_get_dest_address4()525 struct cmsghdr *cmh) in svc_udp_get_dest_address6()547 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()
159 struct cmsghdr *cmsg; in printpacket()286 struct cmsghdr cm; in recvpacket()
183 struct cmsghdr *cm; in __recv_errmsg_cmsg()
71 struct cmsghdr *cmsg; in tuntap_open_tramp()
39 struct cmsghdr *cmsg; in rxrpc_sendmsg_cmsg()51 len = cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)); in rxrpc_sendmsg_cmsg()
485 struct cmsghdr *cmsg; in os_rcv_fd()
443 struct cmsghdr *cmsg; in af_alg_cmsg_send()
226 struct cmsghdr *cmsg; in ip_cmsg_send()251 err = cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)); in ip_cmsg_send()
191 of struct cmsghdr structures with appended data.
705 struct cmsghdr *cmsg; in dccp_msghdr_parse()
691 struct cmsghdr *cmsg; in ip6_datagram_send_ctl()
1038 struct cmsghdr *cmsg; in iucv_sock_sendmsg()
6596 struct cmsghdr *cmsg; in sctp_msghdr_parse()