Lines Matching refs:compat_cmsghdr
108 ((void __user *)((char __user *)(cmsg) + sizeof(struct compat_cmsghdr)))
110 (sizeof(struct compat_cmsghdr) + CMSG_COMPAT_ALIGN(len))
112 (sizeof(struct compat_cmsghdr) + (len))
115 (((msg)->msg_controllen) >= sizeof(struct compat_cmsghdr) ? \
116 (struct compat_cmsghdr __user *)((msg)->msg_control_user) : \
117 (struct compat_cmsghdr __user *)NULL)
120 ((ucmlen) >= sizeof(struct compat_cmsghdr) && \
125 static inline struct compat_cmsghdr __user *cmsg_compat_nxthdr(struct msghdr *msg, in cmsg_compat_nxthdr()
126 struct compat_cmsghdr __user *cmsg, int cmsg_len) in cmsg_compat_nxthdr()
132 return (struct compat_cmsghdr __user *)ptr; in cmsg_compat_nxthdr()
142 struct compat_cmsghdr __user *ucmsg; in cmsghdr_from_user_compat_to_kern()
148 BUILD_BUG_ON(sizeof(struct compat_cmsghdr) != in cmsghdr_from_user_compat_to_kern()
149 CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr))); in cmsghdr_from_user_compat_to_kern()
184 struct compat_cmsghdr cmsg; in cmsghdr_from_user_compat_to_kern()
229 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control_user; in put_cmsg_compat()
230 struct compat_cmsghdr cmhdr; in put_cmsg_compat()
273 if (copy_to_user(CMSG_COMPAT_DATA(cm), data, cmlen - sizeof(struct compat_cmsghdr))) in put_cmsg_compat()
285 if (msg->msg_controllen <= sizeof(struct compat_cmsghdr)) in scm_max_fds_compat()
287 return (msg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int); in scm_max_fds_compat()
292 struct compat_cmsghdr __user *cm = in scm_detach_fds_compat()
293 (struct compat_cmsghdr __user *)msg->msg_control_user; in scm_detach_fds_compat()