aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-11-01 00:37:32 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-12-04 14:34:17 -0500
commit64964528b24ea390824f0e5ce9d34b8d39b28cde (patch)
tree2de66d75468ad4ddecc7e175f86f1dbaae47ea9a /include/linux
parent3c0411846118a578de3a979faf2da3ab5fb81179 (diff)
make proc_ns_operations work with struct ns_common * instead of void *
We can do that now. And kill ->inum(), while we are at it - all instances are identical. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/proc_ns.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/proc_ns.h b/include/linux/proc_ns.h
index 34a1e105bef4..f284959391fd 100644
--- a/include/linux/proc_ns.h
+++ b/include/linux/proc_ns.h
@@ -6,18 +6,18 @@
6 6
7struct pid_namespace; 7struct pid_namespace;
8struct nsproxy; 8struct nsproxy;
9struct ns_common;
9 10
10struct proc_ns_operations { 11struct proc_ns_operations {
11 const char *name; 12 const char *name;
12 int type; 13 int type;
13 void *(*get)(struct task_struct *task); 14 struct ns_common *(*get)(struct task_struct *task);
14 void (*put)(void *ns); 15 void (*put)(struct ns_common *ns);
15 int (*install)(struct nsproxy *nsproxy, void *ns); 16 int (*install)(struct nsproxy *nsproxy, struct ns_common *ns);
16 unsigned int (*inum)(void *ns);
17}; 17};
18 18
19struct proc_ns { 19struct proc_ns {
20 void *ns; 20 struct ns_common *ns;
21 const struct proc_ns_operations *ns_ops; 21 const struct proc_ns_operations *ns_ops;
22}; 22};
23 23