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,
126 struct compat_cmsghdr __user *cmsg, int cmsg_len)
132 return (struct compat_cmsghdr __user *)ptr;
142 struct compat_cmsghdr __user *ucmsg;
148 BUILD_BUG_ON(sizeof(struct compat_cmsghdr) !=
149 CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr)));
184 struct compat_cmsghdr cmsg;
229 struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control_user;
230 struct compat_cmsghdr cmhdr;
273 if (copy_to_user(CMSG_COMPAT_DATA(cm), data, cmlen - sizeof(struct compat_cmsghdr)))
285 if (msg->msg_controllen <= sizeof(struct compat_cmsghdr))
287 return (msg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int);
292 struct compat_cmsghdr __user *cm =
293 (struct compat_cmsghdr __user *)msg->msg_control_user;