Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dfdtable.h38 struct files_struct { struct
72 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw() argument
88 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked()
95 static inline bool close_on_exec(unsigned int fd, const struct files_struct *files) in close_on_exec()
102 void put_files_struct(struct files_struct *fs);
103 void switch_files_struct(struct task_struct *tsk, struct files_struct *files);
104 int unshare_fd(unsigned long unshare_flags, struct files_struct **new_fdp);
117 struct files_struct *dup_fd(struct files_struct *, struct fd_range *) __latent_entropy;
118 void close_cloexec_files(struct files_struct *);
119 int iterate_fd(struct files_struct *, unsigned,
H A Dsched.h1212 struct files_struct *files;
/linux/fs/
H A Dfile.c252 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 = {
[all …]
H A Dinternal.h200 struct file *file_close_fd_locked(struct files_struct *files, unsigned fd);
H A Dexec.c1128 struct files_struct *files = NULL; in posixtimer_exec()
/linux/fs/tests/
H A Dfdtable_kunit.c34 struct files_struct *newf; in test_dup_fd()
/linux/security/apparmor/include/
H A Dfile.h103 void aa_inherit_files(const struct cred *cred, struct files_struct *files);
/linux/Documentation/filesystems/
H A Dfiles.rst29 files_struct contains a pointer to struct fdtable through
31 fdtable is embedded in files_struct itself. On a subsequent
/linux/fs/proc/
H A Dfd.c25 struct files_struct *files = NULL; in seq_show()
/linux/io_uring/
H A Dopenclose.c238 struct files_struct *files = current->files; in io_close()
/linux/security/apparmor/
H A Dfile.c726 void aa_inherit_files(const struct cred *cred, struct files_struct *files) in aa_inherit_files()
/linux/kernel/
H A Dfork.c1672 struct files_struct *oldf, *newf; in copy_files()
3166 sizeof(struct files_struct), 0, in proc_caches_init()
3240 struct files_struct *new_fd = NULL; in ksys_unshare()
/linux/security/selinux/
H A Dhooks.c2483 struct files_struct *files) in flush_unauthorized_files()