Go to the documentation of this file.
5 #ifndef __LINUX_FDTABLE_H
6 #define __LINUX_FDTABLE_H
9 #include <linux/compiler.h>
12 #include <linux/types.h>
22 #define NR_OPEN_DEFAULT BITS_PER_LONG
38 static inline bool fd_is_open(
int fd,
const struct fdtable *fdt)
63 #define rcu_dereference_check_fdtable(files, fdtfd) \
64 (rcu_dereference_check((fdtfd), \
65 lockdep_is_held(&(files)->file_lock) || \
66 atomic_read(&(files)->count) == 1 || \
67 rcu_my_thread_group_empty()))
69 #define files_fdtable(files) \
70 (rcu_dereference_check_fdtable((files), (files)->fdt))
91 #define fcheck(fd) fcheck_files(current->files, fd)
103 int (*)(
const void *,
struct file *,
unsigned),
109 unsigned int fd,
struct file *file);