2 * debugfs.h - a tiny little debug file system
4 * Copyright (C) 2004 Greg Kroah-Hartman <greg@kroah.com>
5 * Copyright (C) 2004 IBM Inc.
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.
11 * debugfs is for people to use instead of /proc or /sys.
12 * See Documentation/DocBook/filesystems for more details.
19 #include <linux/seq_file.h>
20 #include <linux/types.h>
21 #include <linux/compiler.h>
23 struct file_operations;
25 #include <linux/err.h>
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)
31 return ERR_PTR(-ENODEV);
34 static inline struct dentry *debugfs_create_dir(const char *name,
35 struct dentry *parent)
37 return ERR_PTR(-ENODEV);
40 static inline void debugfs_remove(struct dentry *dentry)
43 static inline void debugfs_remove_recursive(struct dentry *dentry)