Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
be77196b CG |
2 | #ifndef __FSNOTIFY_FDINFO_H__ |
3 | #define __FSNOTIFY_FDINFO_H__ | |
4 | ||
5 | #include <linux/errno.h> | |
6 | #include <linux/proc_fs.h> | |
7 | ||
8 | struct seq_file; | |
9 | struct file; | |
10 | ||
11 | #ifdef CONFIG_PROC_FS | |
12 | ||
13 | #ifdef CONFIG_INOTIFY_USER | |
a3816ab0 | 14 | void inotify_show_fdinfo(struct seq_file *m, struct file *f); |
be77196b CG |
15 | #endif |
16 | ||
17 | #ifdef CONFIG_FANOTIFY | |
a3816ab0 | 18 | void fanotify_show_fdinfo(struct seq_file *m, struct file *f); |
be77196b CG |
19 | #endif |
20 | ||
21 | #else /* CONFIG_PROC_FS */ | |
22 | ||
23 | #define inotify_show_fdinfo NULL | |
24 | #define fanotify_show_fdinfo NULL | |
25 | ||
26 | #endif /* CONFIG_PROC_FS */ | |
27 | ||
28 | #endif /* __FSNOTIFY_FDINFO_H__ */ |