]> git.sesse.net Git - bcachefs-tools-debian/blob - c_src/include/linux/debugfs.h
rust: bump rpassword to v7.x
[bcachefs-tools-debian] / c_src / include / linux / debugfs.h
1 /*
2  *  debugfs.h - a tiny little debug file system
3  *
4  *  Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
5  *  Copyright (C) 2004 IBM Inc.
6  *
7  *      This program is free software; you can redistribute it and/or
8  *      modify it under the terms of the GNU General Public License version
9  *      2 as published by the Free Software Foundation.
10  *
11  *  debugfs is for people to use instead of /proc or /sys.
12  *  See Documentation/DocBook/filesystems for more details.
13  */
14
15 #ifndef _DEBUGFS_H_
16 #define _DEBUGFS_H_
17
18 #include <linux/fs.h>
19 #include <linux/seq_file.h>
20 #include <linux/types.h>
21 #include <linux/compiler.h>
22
23 struct file_operations;
24
25 #include <linux/err.h>
26
27 static inline struct dentry *debugfs_create_file(const char *name, umode_t mode,
28                                         struct dentry *parent, void *data,
29                                         const struct file_operations *fops)
30 {
31         return ERR_PTR(-ENODEV);
32 }
33
34 static inline struct dentry *debugfs_create_dir(const char *name,
35                                                 struct dentry *parent)
36 {
37         return ERR_PTR(-ENODEV);
38 }
39
40 static inline void debugfs_remove(struct dentry *dentry)
41 { }
42
43 static inline void debugfs_remove_recursive(struct dentry *dentry)
44 { }
45
46 #endif