Searched refs:fdmax (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/net/core/
H A Dscm.c259 int fdmax = 0; scm_detach_fds() local
271 fdmax = ((msg->msg_controllen - sizeof(struct cmsghdr)) scm_detach_fds()
274 if (fdnum < fdmax) scm_detach_fds()
275 fdmax = fdnum; scm_detach_fds()
277 for (i=0, cmfptr=(__force int __user *)CMSG_DATA(cm); i<fdmax; scm_detach_fds()
320 if (i < fdnum || (fdnum && fdmax <= 0)) scm_detach_fds()
/linux-4.4.14/net/
H A Dcompat.c261 int fdmax = (kmsg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int); scm_detach_fds_compat() local
267 if (fdnum < fdmax) scm_detach_fds_compat()
268 fdmax = fdnum; scm_detach_fds_compat()
270 for (i = 0, cmfptr = (int __user *) CMSG_COMPAT_DATA(cm); i < fdmax; i++, cmfptr++) { scm_detach_fds_compat()

Completed in 103 milliseconds