blob: 5c9937e02e21740f062a9b5e73694100ecc7c3c8 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Cyrill Gorcunovbe771962012-12-17 16:05:12 -08002#ifndef __FSNOTIFY_FDINFO_H__
3#define __FSNOTIFY_FDINFO_H__
4
5#include <linux/errno.h>
6#include <linux/proc_fs.h>
7
8struct seq_file;
9struct file;
10
11#ifdef CONFIG_PROC_FS
12
13#ifdef CONFIG_INOTIFY_USER
Joe Perchesa3816ab2014-09-29 16:08:25 -070014void inotify_show_fdinfo(struct seq_file *m, struct file *f);
Cyrill Gorcunovbe771962012-12-17 16:05:12 -080015#endif
16
17#ifdef CONFIG_FANOTIFY
Joe Perchesa3816ab2014-09-29 16:08:25 -070018void fanotify_show_fdinfo(struct seq_file *m, struct file *f);
Cyrill Gorcunovbe771962012-12-17 16:05:12 -080019#endif
20
21#else /* CONFIG_PROC_FS */
22
23#define inotify_show_fdinfo NULL
24#define fanotify_show_fdinfo NULL
25
26#endif /* CONFIG_PROC_FS */
27
28#endif /* __FSNOTIFY_FDINFO_H__ */