Lines Matching refs:files_struct

252 static int expand_fdtable(struct files_struct *files, unsigned int nr)  in expand_fdtable()
288 static int expand_files(struct files_struct *files, unsigned int nr) in expand_files()
437 struct files_struct *dup_fd(struct files_struct *oldf, struct fd_range *range) in dup_fd()
439 struct files_struct *newf; in dup_fd()
537 int unshare_fd(unsigned long unshare_flags, struct files_struct **new_fdp) in unshare_fd()
539 struct files_struct *fd = current->files; in unshare_fd()
552 static struct fdtable *close_files(struct files_struct *files) in close_files()
581 void put_files_struct(struct files_struct *files) in put_files_struct()
594 void switch_files_struct(struct task_struct *tsk, struct files_struct *files) in switch_files_struct()
607 struct files_struct init_files = {
648 struct files_struct *files = current->files; in alloc_fd()
702 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
712 struct files_struct *files = current->files; in put_unused_fd()
738 struct files_struct *files = current->files; in fd_install_slowpath()
758 struct files_struct *files = current->files; in fd_install()
791 struct file *file_close_fd_locked(struct files_struct *files, unsigned fd) in file_close_fd_locked()
835 static inline void __range_cloexec(struct files_struct *cur_fds, in __range_cloexec()
898 static inline void __range_close(struct files_struct *files, in __range_close()
958 struct files_struct *cur_fds = me->files, *fds = NULL; in SYSCALL_DEFINE3()
1027 struct files_struct *files = current->files; in file_close_fd()
1037 void close_cloexec_files(struct files_struct *files) in close_cloexec_files()
1166 static inline struct file *__fget_files_rcu(struct files_struct *files, in __fget_files_rcu()
1242 static struct file *__fget_files(struct files_struct *files, unsigned int fd, in __fget_files()
1285 struct files_struct *files; in fget_task_next()
1331 struct files_struct *files = current->files; in __fget_light()
1426 struct files_struct *files = current->files; in set_close_on_exec()
1441 static int do_dup2(struct files_struct *files, in do_dup2()
1497 struct files_struct *files = current->files; in replace_fd()
1576 struct files_struct *files = current->files; in ksys_dup3()
1614 struct files_struct *files = current->files; in SYSCALL_DEFINE2()
1659 int iterate_fd(struct files_struct *files, unsigned n, in iterate_fd()