Lines Matching refs:compat_cmsghdr
110 ((void __user *)((char __user *)(cmsg) + sizeof(struct compat_cmsghdr)))
112 (sizeof(struct compat_cmsghdr) + CMSG_COMPAT_ALIGN(len))
114 (sizeof(struct compat_cmsghdr) + (len))
117 (((msg)->msg_controllen) >= sizeof(struct compat_cmsghdr) ? \
118 (struct compat_cmsghdr __user *)((msg)->msg_control) : \
119 (struct compat_cmsghdr __user *)NULL)
122 ((ucmlen) >= sizeof(struct compat_cmsghdr) && \
127 static inline struct compat_cmsghdr __user *cmsg_compat_nxthdr(struct msghdr *msg, in cmsg_compat_nxthdr()
128 struct compat_cmsghdr __user *cmsg, int cmsg_len) in cmsg_compat_nxthdr()
134 return (struct compat_cmsghdr __user *)ptr; in cmsg_compat_nxthdr()
144 struct compat_cmsghdr __user *ucmsg; in cmsghdr_from_user_compat_to_kern()
150 BUILD_BUG_ON(sizeof(struct compat_cmsghdr) != in cmsghdr_from_user_compat_to_kern()
151 CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr))); in cmsghdr_from_user_compat_to_kern()
186 struct compat_cmsghdr cmsg; in cmsghdr_from_user_compat_to_kern()
230 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control; in put_cmsg_compat()
231 struct compat_cmsghdr cmhdr; in put_cmsg_compat()
274 if (copy_to_user(CMSG_COMPAT_DATA(cm), data, cmlen - sizeof(struct compat_cmsghdr))) in put_cmsg_compat()
286 if (msg->msg_controllen <= sizeof(struct compat_cmsghdr)) in scm_max_fds_compat()
288 return (msg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int); in scm_max_fds_compat()
293 struct compat_cmsghdr __user *cm = in scm_detach_fds_compat()
294 (struct compat_cmsghdr __user *)msg->msg_control; in scm_detach_fds_compat()