• Home
  • Raw
  • Download

Lines Matching refs:msg

127 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p)  in __scm_send()  argument
132 for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) in __scm_send()
144 if (!CMSG_OK(msg, cmsg)) in __scm_send()
210 int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data) in put_cmsg() argument
213 = (__force struct cmsghdr __user *)msg->msg_control; in put_cmsg()
218 if (MSG_CMSG_COMPAT & msg->msg_flags) in put_cmsg()
219 return put_cmsg_compat(msg, level, type, len, data); in put_cmsg()
221 if (cm==NULL || msg->msg_controllen < sizeof(*cm)) { in put_cmsg()
222 msg->msg_flags |= MSG_CTRUNC; in put_cmsg()
225 if (msg->msg_controllen < cmlen) { in put_cmsg()
226 msg->msg_flags |= MSG_CTRUNC; in put_cmsg()
227 cmlen = msg->msg_controllen; in put_cmsg()
239 if (msg->msg_controllen < cmlen) in put_cmsg()
240 cmlen = msg->msg_controllen; in put_cmsg()
241 msg->msg_control += cmlen; in put_cmsg()
242 msg->msg_controllen -= cmlen; in put_cmsg()
249 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds() argument
252 = (__force struct cmsghdr __user*)msg->msg_control; in scm_detach_fds()
260 if (MSG_CMSG_COMPAT & msg->msg_flags) { in scm_detach_fds()
261 scm_detach_fds_compat(msg, scm); in scm_detach_fds()
265 if (msg->msg_controllen > sizeof(struct cmsghdr)) in scm_detach_fds()
266 fdmax = ((msg->msg_controllen - sizeof(struct cmsghdr)) in scm_detach_fds()
280 err = get_unused_fd_flags(MSG_CMSG_CLOEXEC & msg->msg_flags in scm_detach_fds()
309 if (msg->msg_controllen < cmlen) in scm_detach_fds()
310 cmlen = msg->msg_controllen; in scm_detach_fds()
311 msg->msg_control += cmlen; in scm_detach_fds()
312 msg->msg_controllen -= cmlen; in scm_detach_fds()
316 msg->msg_flags |= MSG_CTRUNC; in scm_detach_fds()