Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/fs/
Dfile.c60 int error, nfds; in expand_fd_array() local
67 nfds = files->max_fds; in expand_fd_array()
77 if (nfds < 256) in expand_fd_array()
78 nfds = 256; in expand_fd_array()
81 if (nfds < (PAGE_SIZE / sizeof(struct file *))) in expand_fd_array()
82 nfds = PAGE_SIZE / sizeof(struct file *); in expand_fd_array()
84 nfds = nfds * 2; in expand_fd_array()
85 if (nfds > NR_OPEN) in expand_fd_array()
86 nfds = NR_OPEN; in expand_fd_array()
88 } while (nfds <= nr); in expand_fd_array()
[all …]
Dselect.c385 static int do_poll(unsigned int nfds, unsigned int nchunks, unsigned int nleft, in do_poll() argument
412 asmlinkage long sys_poll(struct pollfd * ufds, unsigned int nfds, long timeout) in sys_poll() argument
420 if (nfds > current->files->max_fdset && nfds > OPEN_MAX) in sys_poll()
438 if (nfds != 0) { in sys_poll()
440 (1 + (nfds - 1) / POLLFD_PER_PAGE) * sizeof(struct pollfd *), in sys_poll()
447 nleft = nfds; in sys_poll()
471 fdcount = do_poll(nfds, nchunks, nleft, fds, wait, timeout); in sys_poll()
491 if (nfds != 0) in sys_poll()
/linux-2.4.37.9/kernel/
Dfork.c440 int open_files, nfds, size, i, error = 0; in copy_files() local
495 nfds = NR_OPEN_DEFAULT; in copy_files()
496 if (open_files > nfds) { in copy_files()
504 nfds = newf->max_fds; in copy_files()