|
@@ -80,6 +80,8 @@ static const struct file_operations __fops = { \
|
|
|
|
|
|
#if defined(CONFIG_DEBUG_FS)
|
|
#if defined(CONFIG_DEBUG_FS)
|
|
|
|
|
|
|
|
+struct dentry *debugfs_lookup(const char *name, struct dentry *parent);
|
|
|
|
+
|
|
struct dentry *debugfs_create_file(const char *name, umode_t mode,
|
|
struct dentry *debugfs_create_file(const char *name, umode_t mode,
|
|
struct dentry *parent, void *data,
|
|
struct dentry *parent, void *data,
|
|
const struct file_operations *fops);
|
|
const struct file_operations *fops);
|
|
@@ -181,6 +183,12 @@ ssize_t debugfs_write_file_bool(struct file *file, const char __user *user_buf,
|
|
* want to duplicate the design decision mistakes of procfs and devfs again.
|
|
* want to duplicate the design decision mistakes of procfs and devfs again.
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+static inline struct dentry *debugfs_lookup(const char *name,
|
|
|
|
+ struct dentry *parent)
|
|
|
|
+{
|
|
|
|
+ return ERR_PTR(-ENODEV);
|
|
|
|
+}
|
|
|
|
+
|
|
static inline struct dentry *debugfs_create_file(const char *name, umode_t mode,
|
|
static inline struct dentry *debugfs_create_file(const char *name, umode_t mode,
|
|
struct dentry *parent, void *data,
|
|
struct dentry *parent, void *data,
|
|
const struct file_operations *fops)
|
|
const struct file_operations *fops)
|