Lines Matching refs:cmsghdr
60 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp)
67 num = (cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)))/sizeof(int);
137 struct cmsghdr *cmsg;
144 /* Verify that cmsg_len is at least sizeof(struct cmsghdr) */
219 struct cmsghdr __user *cm
220 = (__force struct cmsghdr __user *)msg->msg_control;
221 struct cmsghdr cmhdr;
243 if (copy_to_user(CMSG_DATA(cm), data, cmlen - sizeof(struct cmsghdr)))
258 struct cmsghdr __user *cm
259 = (__force struct cmsghdr __user*)msg->msg_control;
272 if (msg->msg_controllen > sizeof(struct cmsghdr))
273 fdmax = ((msg->msg_controllen - sizeof(struct cmsghdr))