Home
last modified time | relevance | path

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

/Linux-v4.19/net/core/
Dscm.c260 int fdmax = 0; in scm_detach_fds() local
272 fdmax = ((msg->msg_controllen - sizeof(struct cmsghdr)) in scm_detach_fds()
275 if (fdnum < fdmax) in scm_detach_fds()
276 fdmax = fdnum; in scm_detach_fds()
278 for (i=0, cmfptr=(__force int __user *)CMSG_DATA(cm); i<fdmax; in scm_detach_fds()
321 if (i < fdnum || (fdnum && fdmax <= 0)) in scm_detach_fds()
/Linux-v4.19/net/
Dcompat.c267 int fdmax = (kmsg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int); in scm_detach_fds_compat() local
273 if (fdnum < fdmax) in scm_detach_fds_compat()
274 fdmax = fdnum; in scm_detach_fds_compat()
276 for (i = 0, cmfptr = (int __user *) CMSG_COMPAT_DATA(cm); i < fdmax; i++, cmfptr++) { in scm_detach_fds_compat()