diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-29 18:46:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-02 03:16:00 +0300 |
commit | 65c0cfafce9575319fb6f70080fbe226e5617e3b (patch) | |
tree | e1e0a276860f74ee0fe6747c8455a8ec0e7c2d03 /include/net/net_namespace.h | |
parent | 671011720baa222b6de667cd688aed4dc8908924 (diff) | |
download | linux-65c0cfafce9575319fb6f70080fbe226e5617e3b.tar.xz |
net: remove [un]register_pernet_gen_... and update the docs.
No that all of the callers have been updated to set fields in
struct pernet_operations, and simplified to let the network
namespace core handle the allocation and freeing of the storage
for them, remove the surpurpflous methods and update the docs
to the new style.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r-- | include/net/net_namespace.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 080774b9dbf3..24a8c5591f63 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -264,28 +264,6 @@ extern void unregister_pernet_subsys(struct pernet_operations *); extern int register_pernet_device(struct pernet_operations *); extern void unregister_pernet_device(struct pernet_operations *); -static inline int register_pernet_gen_subsys(int *id, struct pernet_operations *ops) -{ - ops->id = id; - return register_pernet_subsys(ops); -} - -static inline void unregister_pernet_gen_subsys(int id, struct pernet_operations *ops) -{ - return unregister_pernet_subsys(ops); -} - -static inline int register_pernet_gen_device(int *id, struct pernet_operations *ops) -{ - ops->id = id; - return register_pernet_device(ops); -} - -static inline void unregister_pernet_gen_device(int id, struct pernet_operations *ops) -{ - return unregister_pernet_device(ops); -} - struct ctl_path; struct ctl_table; struct ctl_table_header; |