Home
last modified time | relevance | path

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

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