Lines Matching refs:cur_fds
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()
696 static inline void __range_close(struct files_struct *cur_fds, unsigned int fd, in __range_close() argument
702 n = last_fd(files_fdtable(cur_fds)); in __range_close()
709 spin_lock(&cur_fds->file_lock); in __range_close()
710 file = pick_file(cur_fds, fd++); in __range_close()
711 spin_unlock(&cur_fds->file_lock); in __range_close()
715 filp_close(file, cur_fds); in __range_close()
733 struct files_struct *cur_fds = me->files, *fds = NULL; in __close_range() local
757 if (max_fd >= last_fd(files_fdtable(cur_fds))) in __close_range()
771 swap(cur_fds, fds); in __close_range()
775 __range_cloexec(cur_fds, fd, max_fd); in __close_range()
777 __range_close(cur_fds, fd, max_fd); in __close_range()
785 me->files = cur_fds; in __close_range()