Messages in this thread Patch in this message | | | Date | Wed, 21 Jan 2015 13:31:49 -0500 | From | Steven Rostedt <> | Subject | Re: [RFC][PATCH 4/5] tracing: Have mkdir and rmdir be part of tracefs |
| |
The update to the missing tracefs.h.
-- Steve
--- include/linux/tracefs.h | 8 ++++
diff --git a/include/linux/tracefs.h b/include/linux/tracefs.h index 23e04ce21749..f8c58ab18bca 100644 --- a/include/linux/tracefs.h +++ b/include/linux/tracefs.h @@ -34,6 +34,14 @@ struct dentry *tracefs_create_dir(const char *name, struct dentry *parent); void tracefs_remove(struct dentry *dentry); void tracefs_remove_recursive(struct dentry *dentry); +struct tracefs_dir_ops { + int (*mkdir)(const char *name); + int (*rmdir)(const char *name); + struct task_struct *lock_owner; +}; + +void tracefs_add_dir_ops(struct dentry *dentry, struct tracefs_dir_ops *ops); + bool tracefs_initialized(void); #endif /* CONFIG_TRACING */
| |