Searched refs:files_struct (Results 1 - 13 of 13) sorted by relevance

/linux-4.1.27/include/linux/
H A Dfdtable.h45 struct files_struct { struct
75 static inline struct file *__fcheck_files(struct files_struct *files, unsigned int fd) __fcheck_files()
84 static inline struct file *fcheck_files(struct files_struct *files, unsigned int fd) fcheck_files()
99 struct files_struct *get_files_struct(struct task_struct *);
100 void put_files_struct(struct files_struct *fs);
101 void reset_files_struct(struct files_struct *);
102 int unshare_files(struct files_struct **);
103 struct files_struct *dup_fd(struct files_struct *, int *);
104 void do_close_on_exec(struct files_struct *);
105 int iterate_fd(struct files_struct *, unsigned,
109 extern int __alloc_fd(struct files_struct *files,
111 extern void __fd_install(struct files_struct *files,
113 extern int __close_fd(struct files_struct *files,
H A Dinit_task.h25 extern struct files_struct init_files;
H A Dfs.h1051 struct files_struct;
1053 struct file *filp, struct files_struct *files);
1192 struct files_struct; show_fd_locks()
1194 struct file *filp, struct files_struct *files) {}
H A Dsched.h1480 struct files_struct *files;
/linux-4.1.27/fs/
H A Dfile.c6 * Manage the dynamic fd arrays in the process files_struct.
60 * Expand the fdset in the files_struct. Called with the files spinlock
142 static int expand_fdtable(struct files_struct *files, int nr)
187 static int expand_files(struct files_struct *files, int nr) expand_files()
242 * errorp will be valid only when the returned files_struct is NULL.
244 struct files_struct *dup_fd(struct files_struct *oldf, int *errorp) dup_fd()
246 struct files_struct *newf; dup_fd()
349 static struct fdtable *close_files(struct files_struct * files) close_files()
381 struct files_struct *get_files_struct(struct task_struct *task) get_files_struct()
383 struct files_struct *files; get_files_struct()
394 void put_files_struct(struct files_struct *files) put_files_struct()
406 void reset_files_struct(struct files_struct *files) reset_files_struct()
409 struct files_struct *old; reset_files_struct()
420 struct files_struct * files = tsk->files; exit_files()
430 struct files_struct init_files = {
445 int __alloc_fd(struct files_struct *files, __alloc_fd()
514 static void __put_unused_fd(struct files_struct *files, unsigned int fd) __put_unused_fd()
524 struct files_struct *files = current->files; put_unused_fd()
552 void __fd_install(struct files_struct *files, unsigned int fd, __fd_install()
573 int __close_fd(struct files_struct *files, unsigned fd) __close_fd()
596 void do_close_on_exec(struct files_struct *files) do_close_on_exec()
634 struct files_struct *files = current->files; __fget()
679 struct files_struct *files = current->files; __fget_light()
727 struct files_struct *files = current->files; set_close_on_exec()
740 struct files_struct *files = current->files; get_close_on_exec()
750 static int do_dup2(struct files_struct *files,
797 struct files_struct *files = current->files; replace_fd()
820 struct files_struct *files = current->files; SYSCALL_DEFINE3()
853 struct files_struct *files = current->files; SYSCALL_DEFINE2()
893 int iterate_fd(struct files_struct *files, unsigned n, iterate_fd()
H A Dcoredump.c515 struct files_struct *displaced; do_coredump()
H A Dlocks.c810 * For FL_OFDLCK locks, the owner is the filp, not the files_struct.
2602 struct file *filp, struct files_struct *files) __show_fd_locks()
2621 struct file *filp, struct files_struct *files) show_fd_locks()
H A Dexec.c1486 struct files_struct *displaced; do_execveat_common()
/linux-4.1.27/fs/proc/
H A Dfd.c21 struct files_struct *files = NULL; seq_show()
85 struct files_struct *files; tid_fd_revalidate()
150 struct files_struct *files = NULL; proc_fd_link()
233 struct files_struct *files; proc_readfd_common()
/linux-4.1.27/kernel/
H A Dfork.c203 /* SLAB cache for files_struct structures (tsk->files) */
1007 struct files_struct *oldf, *newf; copy_files()
1826 sizeof(struct files_struct), 0, proc_caches_init()
1902 static int unshare_fd(unsigned long unshare_flags, struct files_struct **new_fdp) unshare_fd()
1904 struct files_struct *fd = current->files; unshare_fd()
1928 struct files_struct *fd, *new_fd = NULL; SYSCALL_DEFINE1()
2044 int unshare_files(struct files_struct **displaced) unshare_files()
2047 struct files_struct *copy = NULL; unshare_files()
/linux-4.1.27/drivers/android/
H A Dbinder.c305 struct files_struct *files;
379 struct files_struct *files = proc->files; task_get_unused_fd_flags()
3171 struct files_struct *files; binder_deferred_func()
/linux-4.1.27/fs/fuse/
H A Dfile.c311 * Scramble the ID space with XTEA, so that the value of the files_struct
/linux-4.1.27/security/selinux/
H A Dhooks.c2334 struct files_struct *files) flush_unauthorized_files()

Completed in 2584 milliseconds