Lines Matching refs:cur_fds
659 static inline void __range_cloexec(struct files_struct *cur_fds, in __range_cloexec() argument
665 spin_lock(&cur_fds->file_lock); in __range_cloexec()
666 fdt = files_fdtable(cur_fds); in __range_cloexec()
670 spin_unlock(&cur_fds->file_lock); in __range_cloexec()
673 static inline void __range_close(struct files_struct *cur_fds, unsigned int fd, in __range_close() argument
679 file = pick_file(cur_fds, fd++); in __range_close()
682 filp_close(file, cur_fds); in __range_close()
705 struct files_struct *cur_fds = me->files, *fds = NULL; in __close_range() local
729 if (max_fd >= last_fd(files_fdtable(cur_fds))) in __close_range()
743 swap(cur_fds, fds); in __close_range()
747 __range_cloexec(cur_fds, fd, max_fd); in __close_range()
749 __range_close(cur_fds, fd, max_fd); in __close_range()
757 me->files = cur_fds; in __close_range()