Lines Matching refs:max_fds
73 set = (nfdt->max_fds - count) / BITS_PER_BYTE; in copy_fd_bitmaps()
80 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps()
93 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
95 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
96 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
100 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable()
132 fdt->max_fds = nr; in alloc_fdtable()
187 if (unlikely(new_fdt->max_fds <= nr)) { in expand_fdtable()
192 BUG_ON(nr < cur_fdt->max_fds); in expand_fdtable()
221 if (nr < fdt->max_fds) in expand_files()
272 int size = fdt->max_fds; in count_open_files()
308 new_fdt->max_fds = NR_OPEN_DEFAULT; in dup_fd()
321 while (unlikely(open_files > new_fdt->max_fds)) { in dup_fd()
334 if (unlikely(new_fdt->max_fds < open_files)) { in dup_fd()
373 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd()
398 if (i >= fdt->max_fds) in close_files()
470 .max_fds = NR_OPEN_DEFAULT,
481 unsigned long maxfd = fdt->max_fds; in find_next_fd()
510 if (fd < fdt->max_fds) in __alloc_fd()
641 if (fd >= fdt->max_fds) in __close_fd()
668 if (fd >= fdt->max_fds) in do_close_on_exec()
969 for (fdt = files_fdtable(files); n < fdt->max_fds; n++) { in iterate_fd()