Home
last modified time | relevance | path

Searched refs:max_fds (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/fs/
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 <= nr)) { in expand_fdtable()
196 BUG_ON(nr < cur_fdt->max_fds); in expand_fdtable()
225 if (nr < fdt->max_fds) in expand_files()
[all …]
Dselect.c629 int ret, max_fds; in core_sys_select() local
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
1209 max_fds = fdt->max_fds; in compat_core_sys_select()
1211 if (n > max_fds) in compat_core_sys_select()
1212 n = max_fds; in compat_core_sys_select()
/kernel/linux/linux-5.10/include/linux/
Dfdtable.h28 unsigned int max_fds; member
87 if (fd < fdt->max_fds) { in __fcheck_files()
88 fd = array_index_nospec(fd, fdt->max_fds); in __fcheck_files()
127 extern int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
/kernel/linux/linux-5.10/kernel/bpf/
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/
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()
Dvfs_cloexec.c49 for (int i = 0; i < files->fdt->max_fds; i++) { in CloseOnExec()
/kernel/liteos_a/fs/include/fs/
Dfd_table.h46 unsigned int max_fds; member
/kernel/liteos_a/fs/proc/os_adapt/
Dfd_proc.c61 for (fd = MIN_START_FD; fd < fdt->max_fds; fd++) { in FillFdInfo()
/kernel/linux/linux-5.10/fs/proc/
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()
Dfd.c246 fd < files_fdtable(files)->max_fds; in proc_readfd_common()
/kernel/linux/linux-5.10/Documentation/filesystems/
Dfiles.rst48 if (n <= fdt->max_fds)
/kernel/linux/linux-5.10/kernel/
Dfork.c2943 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument
2951 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd()
/kernel/linux/linux-5.10/io_uring/
Dio_uring.c4607 if (close->fd >= fdt->max_fds) { in io_close()