2012-12-18 08:05:12 +08:00
|
|
|
#ifndef __FSNOTIFY_FDINFO_H__
|
|
|
|
#define __FSNOTIFY_FDINFO_H__
|
|
|
|
|
|
|
|
#include <linux/errno.h>
|
|
|
|
#include <linux/proc_fs.h>
|
|
|
|
|
|
|
|
struct seq_file;
|
|
|
|
struct file;
|
|
|
|
|
|
|
|
#ifdef CONFIG_PROC_FS
|
|
|
|
|
|
|
|
#ifdef CONFIG_INOTIFY_USER
|
2014-09-30 07:08:25 +08:00
|
|
|
void inotify_show_fdinfo(struct seq_file *m, struct file *f);
|
2012-12-18 08:05:12 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_FANOTIFY
|
2014-09-30 07:08:25 +08:00
|
|
|
void fanotify_show_fdinfo(struct seq_file *m, struct file *f);
|
2012-12-18 08:05:12 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#else /* CONFIG_PROC_FS */
|
|
|
|
|
|
|
|
#define inotify_show_fdinfo NULL
|
|
|
|
#define fanotify_show_fdinfo NULL
|
|
|
|
|
|
|
|
#endif /* CONFIG_PROC_FS */
|
|
|
|
|
|
|
|
#endif /* __FSNOTIFY_FDINFO_H__ */
|