Home
last modified time | relevance | path

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

/net/core/
Dscm.c283 int fdmax = 0; in scm_detach_fds() local
295 fdmax = ((msg->msg_controllen - sizeof(struct cmsghdr)) in scm_detach_fds()
298 if (fdnum < fdmax) in scm_detach_fds()
299 fdmax = fdnum; in scm_detach_fds()
301 for (i=0, cmfptr=(__force int __user *)CMSG_DATA(cm); i<fdmax; in scm_detach_fds()
344 if (i < fdnum || (fdnum && fdmax <= 0)) in scm_detach_fds()
/net/
Dcompat.c269 int fdmax = (kmsg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int); in scm_detach_fds_compat() local
275 if (fdnum < fdmax) in scm_detach_fds_compat()
276 fdmax = fdnum; in scm_detach_fds_compat()
278 for (i = 0, cmfptr = (int __user *) CMSG_COMPAT_DATA(cm); i < fdmax; i++, cmfptr++) { in scm_detach_fds_compat()