Searched refs:max_fds (Results 1 - 6 of 6) sorted by relevance

/linux-master/fs/
H A Dfile.c60 set = (nfdt->max_fds - count) / BITS_PER_BYTE;
67 set = BITBIT_SIZE(nfdt->max_fds) - cpy;
80 BUG_ON(nfdt->max_fds < ofdt->max_fds);
82 cpy = ofdt->max_fds * sizeof(struct file *);
83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *);
87 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds);
135 fdt->max_fds = nr;
191 if (unlikely(new_fdt->max_fds <
301 sane_fdtable_size(struct fdtable *fdt, unsigned int max_fds) argument
316 dup_fd(struct files_struct *oldf, unsigned int max_fds, int *errorp) argument
[all...]
H A Dselect.c630 int ret, max_fds; local
640 /* max_fds can increase, so grab it once to avoid race */
643 max_fds = fdt->max_fds;
645 if (n > max_fds)
646 n = max_fds;
1201 int size, max_fds, ret = -EINVAL; local
1208 /* max_fds can increase, so grab it once to avoid race */
1211 max_fds = fdt->max_fds;
[all...]
/linux-master/include/linux/
H A Dfdtable.h28 unsigned int max_fds; member in struct:fdtable
86 unsigned long mask = array_index_mask_nospec(fd, fdt->max_fds);
123 extern int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
/linux-master/fs/proc/
H A Darray.c157 unsigned int max_fds = 0; local
175 max_fds = files_fdtable(p->files)->max_fds;
197 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds);
H A Dfd.c300 *count = bitmap_weight(fdt->open_fds, fdt->max_fds);
/linux-master/kernel/
H A Dfork.c3249 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, argument
3257 *new_fdp = dup_fd(fd, max_fds, &error);

Completed in 165 milliseconds