Lines Matching full:files
63 #define rcu_dereference_check_fdtable(files, fdtfd) \ argument
64 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
66 #define files_fdtable(files) \ argument
67 rcu_dereference_check_fdtable((files), (files)->fdt)
72 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw() argument
74 struct fdtable *fdt = rcu_dereference_raw(files->fdt); in files_lookup_fd_raw()
88 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked() argument
90 RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock), in files_lookup_fd_locked()
92 return files_lookup_fd_raw(files, 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() argument
97 return test_bit(fd, files_fdtable(files)->close_on_exec); in close_on_exec()