Lines Matching refs:files_struct
169 static int expand_fdtable(struct files_struct *files, unsigned int nr) in expand_fdtable()
214 static int expand_files(struct files_struct *files, unsigned int nr) in expand_files()
316 struct files_struct *dup_fd(struct files_struct *oldf, unsigned int max_fds, int *errorp) in dup_fd()
318 struct files_struct *newf; in dup_fd()
412 static struct fdtable *close_files(struct files_struct * files) in close_files()
444 struct files_struct *get_files_struct(struct task_struct *task) in get_files_struct()
446 struct files_struct *files; in get_files_struct()
457 void put_files_struct(struct files_struct *files) in put_files_struct()
469 void reset_files_struct(struct files_struct *files) in reset_files_struct()
472 struct files_struct *old; in reset_files_struct()
483 struct files_struct * files = tsk->files; in exit_files()
493 struct files_struct init_files = {
524 int __alloc_fd(struct files_struct *files, in __alloc_fd()
598 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
608 struct files_struct *files = current->files; in put_unused_fd()
636 void __fd_install(struct files_struct *files, unsigned int fd, in __fd_install()
671 static struct file *pick_file(struct files_struct *files, unsigned fd) in pick_file()
694 int __close_fd(struct files_struct *files, unsigned fd) in __close_fd()
719 struct files_struct *cur_fds = me->files, *fds = NULL; in __close_range()
790 struct files_struct *files = current->files; in __close_fd_get_file()
817 struct files_struct *files = current->files; in close_fd_get_file()
827 void do_close_on_exec(struct files_struct *files) in do_close_on_exec()
863 static inline struct file *__fget_files_rcu(struct files_struct *files, in __fget_files_rcu()
918 static struct file *__fget_files(struct files_struct *files, unsigned int fd, in __fget_files()
983 struct files_struct *files = current->files; in __fget_light()
1036 struct files_struct *files = current->files; in set_close_on_exec()
1049 struct files_struct *files = current->files; in get_close_on_exec()
1059 static int do_dup2(struct files_struct *files, in do_dup2()
1106 struct files_struct *files = current->files; in replace_fd()
1185 struct files_struct *files = current->files; in ksys_dup3()
1223 struct files_struct *files = current->files; in SYSCALL_DEFINE2()
1263 int iterate_fd(struct files_struct *files, unsigned n, in iterate_fd()