Lines Matching refs:cmsghdr
65 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp) in scm_fp_copy()
72 num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int); in scm_fp_copy()
133 struct cmsghdr *cmsg; in __scm_send()
220 if (!msg->msg_control || msg->msg_controllen < sizeof(struct cmsghdr)) { in put_cmsg()
230 struct cmsghdr __user *cm = msg->msg_control_user; in put_cmsg()
231 struct cmsghdr cmhdr; in put_cmsg()
240 struct cmsghdr *cm = msg->msg_control; in put_cmsg()
285 if (msg->msg_controllen <= sizeof(struct cmsghdr)) in scm_max_fds()
287 return (msg->msg_controllen - sizeof(struct cmsghdr)) / sizeof(int); in scm_max_fds()
292 struct cmsghdr __user *cm = in scm_detach_fds()
293 (__force struct cmsghdr __user *)msg->msg_control; in scm_detach_fds()