fdinfo.h 519 B

123456789101112131415161718192021222324252627
  1. #ifndef __FSNOTIFY_FDINFO_H__
  2. #define __FSNOTIFY_FDINFO_H__
  3. #include <linux/errno.h>
  4. #include <linux/proc_fs.h>
  5. struct seq_file;
  6. struct file;
  7. #ifdef CONFIG_PROC_FS
  8. #ifdef CONFIG_INOTIFY_USER
  9. void inotify_show_fdinfo(struct seq_file *m, struct file *f);
  10. #endif
  11. #ifdef CONFIG_FANOTIFY
  12. void fanotify_show_fdinfo(struct seq_file *m, struct file *f);
  13. #endif
  14. #else /* CONFIG_PROC_FS */
  15. #define inotify_show_fdinfo NULL
  16. #define fanotify_show_fdinfo NULL
  17. #endif /* CONFIG_PROC_FS */
  18. #endif /* __FSNOTIFY_FDINFO_H__ */