Cyrill Gorcunov | be77196 | 2012-12-17 16:05:12 -0800 | [diff] [blame] | 1 | #ifndef __FSNOTIFY_FDINFO_H__ |
| 2 | #define __FSNOTIFY_FDINFO_H__ |
| 3 | |
| 4 | #include <linux/errno.h> |
| 5 | #include <linux/proc_fs.h> |
| 6 | |
| 7 | struct seq_file; |
| 8 | struct file; |
| 9 | |
| 10 | #ifdef CONFIG_PROC_FS |
| 11 | |
| 12 | #ifdef CONFIG_INOTIFY_USER |
Joe Perches | a3816ab | 2014-09-29 16:08:25 -0700 | [diff] [blame] | 13 | void inotify_show_fdinfo(struct seq_file *m, struct file *f); |
Cyrill Gorcunov | be77196 | 2012-12-17 16:05:12 -0800 | [diff] [blame] | 14 | #endif |
| 15 | |
| 16 | #ifdef CONFIG_FANOTIFY |
Joe Perches | a3816ab | 2014-09-29 16:08:25 -0700 | [diff] [blame] | 17 | void fanotify_show_fdinfo(struct seq_file *m, struct file *f); |
Cyrill Gorcunov | be77196 | 2012-12-17 16:05:12 -0800 | [diff] [blame] | 18 | #endif |
| 19 | |
| 20 | #else /* CONFIG_PROC_FS */ |
| 21 | |
| 22 | #define inotify_show_fdinfo NULL |
| 23 | #define fanotify_show_fdinfo NULL |
| 24 | |
| 25 | #endif /* CONFIG_PROC_FS */ |
| 26 | |
| 27 | #endif /* __FSNOTIFY_FDINFO_H__ */ |