fdinfo.h 558 B

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