summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-30 20:13:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 14:09:17 -0400
commit8ce584c7416d8a85a6f3edc17d1cddefe331e87e (patch)
tree4fe64bd588ba8e2239cfa893e1bddb3e3b30c232 /include
parent52f21999c7b921a0390708b66ed286282c2e4bee (diff)
downloadlinux-3.10-8ce584c7416d8a85a6f3edc17d1cddefe331e87e.tar.gz
linux-3.10-8ce584c7416d8a85a6f3edc17d1cddefe331e87e.tar.bz2
linux-3.10-8ce584c7416d8a85a6f3edc17d1cddefe331e87e.zip
procfs: add proc_remove_subtree()
just what it sounds like; do that only to procfs subtrees you've created - doing that to something shared with another driver is not only antisocial, but might cause interesting races with proc_create() and its ilk. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/proc_fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 8307f2f94d8..94dfb2aa553 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -117,6 +117,7 @@ struct proc_dir_entry *proc_create_data(const char *name, umode_t mode,
const struct file_operations *proc_fops,
void *data);
extern void remove_proc_entry(const char *name, struct proc_dir_entry *parent);
+extern int remove_proc_subtree(const char *name, struct proc_dir_entry *parent);
struct pid_namespace;
@@ -202,6 +203,7 @@ static inline struct proc_dir_entry *proc_create_data(const char *name,
return NULL;
}
#define remove_proc_entry(name, parent) do {} while (0)
+#define remove_proc_subtree(name, parent) do {} while (0)
static inline struct proc_dir_entry *proc_symlink(const char *name,
struct proc_dir_entry *parent,const char *dest) {return NULL;}