xref: /OK3568_Linux_fs/kernel/fs/notify/fdinfo.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __FSNOTIFY_FDINFO_H__
3*4882a593Smuzhiyun #define __FSNOTIFY_FDINFO_H__
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/errno.h>
6*4882a593Smuzhiyun #include <linux/proc_fs.h>
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun struct seq_file;
9*4882a593Smuzhiyun struct file;
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifdef CONFIG_PROC_FS
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #ifdef CONFIG_INOTIFY_USER
14*4882a593Smuzhiyun void inotify_show_fdinfo(struct seq_file *m, struct file *f);
15*4882a593Smuzhiyun #endif
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #ifdef CONFIG_FANOTIFY
18*4882a593Smuzhiyun void fanotify_show_fdinfo(struct seq_file *m, struct file *f);
19*4882a593Smuzhiyun #endif
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #else /* CONFIG_PROC_FS */
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #define inotify_show_fdinfo	NULL
24*4882a593Smuzhiyun #define fanotify_show_fdinfo	NULL
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #endif /* CONFIG_PROC_FS */
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif /* __FSNOTIFY_FDINFO_H__ */
29