Lines Matching refs:max_fds
55 set = (nfdt->max_fds - count) / BITS_PER_BYTE; in copy_fd_bitmaps()
62 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps()
75 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
77 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
78 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
82 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable()
114 fdt->max_fds = nr; in alloc_fdtable()
170 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable()
175 BUG_ON(nr < cur_fdt->max_fds); in expand_fdtable()
204 if (nr < fdt->max_fds) in expand_files()
255 unsigned int size = fdt->max_fds; in count_open_files()
291 new_fdt->max_fds = NR_OPEN_DEFAULT; in dup_fd()
304 while (unlikely(open_files > new_fdt->max_fds)) { in dup_fd()
317 if (unlikely(new_fdt->max_fds < open_files)) { in dup_fd()
356 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd()
381 if (i >= fdt->max_fds) in close_files()
453 .max_fds = NR_OPEN_DEFAULT,
465 unsigned int maxfd = fdt->max_fds; in find_next_fd()
494 if (fd < fdt->max_fds) in __alloc_fd()
628 if (fd >= fdt->max_fds) in __close_fd()
655 if (fd >= fdt->max_fds) in __close_fd_get_file()
684 if (fd >= fdt->max_fds) in do_close_on_exec()
1005 for (fdt = files_fdtable(files); n < fdt->max_fds; n++) { in iterate_fd()