Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/
H A Dfile.c60 set = (nfdt->max_fds - count) / BITS_PER_BYTE; in copy_fd_bitmaps()
67 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps()
80 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
82 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
87 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable()
135 fdt->max_fds = nr; in alloc_fdtable()
191 if (unlikely(new_fdt->max_fds <
301 sane_fdtable_size(struct fdtable *fdt, unsigned int max_fds) sane_fdtable_size() argument
316 dup_fd(struct files_struct *oldf, unsigned int max_fds, int *errorp) dup_fd() argument
[all...]
H A Dselect.c629 int ret, max_fds; in core_sys_select() local
639 /* max_fds can increase, so grab it once to avoid race */ in core_sys_select()
642 max_fds = fdt->max_fds; in core_sys_select()
644 if (n > max_fds) in core_sys_select()
645 n = max_fds; in core_sys_select()
1199 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local
1206 /* max_fds can increase, so grab it once to avoid race */ in compat_core_sys_select()
1209 max_fds = fdt->max_fds; in compat_core_sys_select()
[all...]
/kernel/linux/linux-6.6/fs/
H A Dfile.c60 set = (nfdt->max_fds - count) / BITS_PER_BYTE; in copy_fd_bitmaps()
67 set = BITBIT_SIZE(nfdt->max_fds) - cpy; in copy_fd_bitmaps()
80 BUG_ON(nfdt->max_fds < ofdt->max_fds); in copy_fdtable()
82 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
87 copy_fd_bitmaps(nfdt, ofdt, ofdt->max_fds); in copy_fdtable()
135 fdt->max_fds = nr; in alloc_fdtable()
191 if (unlikely(new_fdt->max_fds <
301 sane_fdtable_size(struct fdtable *fdt, unsigned int max_fds) sane_fdtable_size() argument
316 dup_fd(struct files_struct *oldf, unsigned int max_fds, int *errorp) dup_fd() argument
[all...]
H A Dselect.c630 int ret, max_fds; in core_sys_select() local
640 /* max_fds can increase, so grab it once to avoid race */ in core_sys_select()
643 max_fds = fdt->max_fds; in core_sys_select()
645 if (n > max_fds) in core_sys_select()
646 n = max_fds; in core_sys_select()
1200 int size, max_fds, ret = -EINVAL; in compat_core_sys_select() local
1207 /* max_fds can increase, so grab it once to avoid race */ in compat_core_sys_select()
1210 max_fds = fdt->max_fds; in compat_core_sys_select()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dfdtable.h28 unsigned int max_fds; member
87 if (fd < fdt->max_fds) { in files_lookup_fd_raw()
88 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
134 extern int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
/kernel/linux/linux-6.6/include/linux/
H A Dfdtable.h28 unsigned int max_fds; member
87 if (fd < fdt->max_fds) { in files_lookup_fd_raw()
88 fd = array_index_nospec(fd, fdt->max_fds); in files_lookup_fd_raw()
129 extern int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
/kernel/linux/linux-5.10/kernel/bpf/
H A Dtask_iter.c142 u32 curr_tid = info->tid, max_fds; in task_file_seq_get_next() local
184 max_fds = files_fdtable(curr_files)->max_fds; in task_file_seq_get_next()
185 for (; curr_fd < max_fds; curr_fd++) { in task_file_seq_get_next()
/kernel/liteos_a/fs/vfs/operation/
H A Dvfs_procfd.c62 if (minFd >= fdt->max_fds) { in AssignProcessFd()
68 for (int i = minFd; i < fdt->max_fds; i++) { in AssignProcessFd()
99 if ((procFd < 0) || (procFd >= fdt->max_fds)) { in IsValidProcessFd()
H A Dvfs_cloexec.c49 for (int i = 0; i < files->fdt->max_fds; i++) { in CloseOnExec()
/kernel/liteos_a/fs/include/fs/
H A Dfd_table.h46 unsigned int max_fds; member
/kernel/liteos_a/fs/proc/os_adapt/
H A Dfd_proc.c61 for (fd = MIN_START_FD; fd < fdt->max_fds; fd++) { in FillFdInfo()
/kernel/linux/linux-5.10/fs/proc/
H A Darray.c160 unsigned int max_fds = 0; in task_state() local
178 max_fds = files_fdtable(p->files)->max_fds; in task_state()
200 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds); in task_state()
H A Dfd.c246 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
/kernel/linux/linux-6.6/fs/proc/
H A Darray.c157 unsigned int max_fds = 0; in task_state() local
175 max_fds = files_fdtable(p->files)->max_fds; in task_state()
197 seq_put_decimal_ull(m, "\nFDSize:\t", max_fds); in task_state()
H A Dfd.c297 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
/kernel/linux/linux-6.6/io_uring/
H A Dopenclose.c234 if (close->fd >= fdt->max_fds) { in io_close()
/kernel/linux/linux-5.10/kernel/
H A Dfork.c2954 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument
2962 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd()
/kernel/linux/linux-6.6/kernel/
H A Dfork.c3377 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument
3385 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd()
/kernel/linux/linux-5.10/io_uring/
H A Dio_uring.c4648 if (close->fd >= fdt->max_fds) { in io_close()

Completed in 32 milliseconds