Lines Matching refs:cur_fds
681 static inline void __range_cloexec(struct files_struct *cur_fds, in __range_cloexec() argument
687 spin_lock(&cur_fds->file_lock); in __range_cloexec()
688 fdt = files_fdtable(cur_fds); in __range_cloexec()
692 spin_unlock(&cur_fds->file_lock); in __range_cloexec()
695 static inline void __range_close(struct files_struct *cur_fds, unsigned int fd, in __range_close() argument
701 n = last_fd(files_fdtable(cur_fds)); in __range_close()
708 spin_lock(&cur_fds->file_lock); in __range_close()
709 file = pick_file(cur_fds, fd++); in __range_close()
710 spin_unlock(&cur_fds->file_lock); in __range_close()
714 filp_close(file, cur_fds); in __range_close()
732 struct files_struct *cur_fds = me->files, *fds = NULL; in __close_range() local
756 if (max_fd >= last_fd(files_fdtable(cur_fds))) in __close_range()
770 swap(cur_fds, fds); in __close_range()
774 __range_cloexec(cur_fds, fd, max_fd); in __close_range()
776 __range_close(cur_fds, fd, max_fd); in __close_range()
784 me->files = cur_fds; in __close_range()