Lines Matching refs:compat_cmsghdr
107 ((void __user *)((char __user *)(cmsg) + sizeof(struct compat_cmsghdr)))
109 (sizeof(struct compat_cmsghdr) + CMSG_COMPAT_ALIGN(len))
111 (sizeof(struct compat_cmsghdr) + (len))
114 (((msg)->msg_controllen) >= sizeof(struct compat_cmsghdr) ? \
115 (struct compat_cmsghdr __user *)((msg)->msg_control) : \
116 (struct compat_cmsghdr __user *)NULL)
119 ((ucmlen) >= sizeof(struct compat_cmsghdr) && \
124 static inline struct compat_cmsghdr __user *cmsg_compat_nxthdr(struct msghdr *msg, in cmsg_compat_nxthdr()
125 struct compat_cmsghdr __user *cmsg, int cmsg_len) in cmsg_compat_nxthdr()
131 return (struct compat_cmsghdr __user *)ptr; in cmsg_compat_nxthdr()
141 struct compat_cmsghdr __user *ucmsg; in cmsghdr_from_user_compat_to_kern()
147 BUILD_BUG_ON(sizeof(struct compat_cmsghdr) != in cmsghdr_from_user_compat_to_kern()
148 CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr))); in cmsghdr_from_user_compat_to_kern()
183 struct compat_cmsghdr cmsg; in cmsghdr_from_user_compat_to_kern()
227 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in put_cmsg_compat()
228 struct compat_cmsghdr cmhdr; in put_cmsg_compat()
271 if (copy_to_user(CMSG_COMPAT_DATA(cm), data, cmlen - sizeof(struct compat_cmsghdr))) in put_cmsg_compat()
283 if (msg->msg_controllen <= sizeof(struct compat_cmsghdr)) in scm_max_fds_compat()
285 return (msg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int); in scm_max_fds_compat()
290 struct compat_cmsghdr __user *cm = in scm_detach_fds_compat()
291 (struct compat_cmsghdr __user *)msg->msg_control; in scm_detach_fds_compat()