Searched refs:cur_fds (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/fs/ |
H A D | file.c | 682 static inline void __range_cloexec(struct files_struct *cur_fds, in __range_cloexec() argument 688 spin_lock(&cur_fds->file_lock); in __range_cloexec() 689 fdt = files_fdtable(cur_fds); in __range_cloexec() 693 spin_unlock(&cur_fds->file_lock); in __range_cloexec() 735 struct files_struct *cur_fds = me->files, *fds = NULL; in __close_range() local 759 if (max_fd >= last_fd(files_fdtable(cur_fds))) in __close_range() 773 swap(cur_fds, fds); in __close_range() 777 __range_cloexec(cur_fds, fd, max_fd); in __close_range() 779 __range_close(cur_fds, fd, max_fd); in __close_range() 787 me->files = cur_fds; in __close_range() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | file.c | 720 struct files_struct *cur_fds = me->files, *fds = NULL; in __close_range() local 729 cur_max = files_fdtable(cur_fds)->max_fds; in __close_range() 756 swap(cur_fds, fds); in __close_range() 763 file = pick_file(cur_fds, fd++); in __close_range() 767 filp_close(file, cur_fds); in __close_range() 777 me->files = cur_fds; in __close_range()
|
Completed in 4 milliseconds