diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-29 15:46:17 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-01 16:16:00 -0800 |
commit | 65c0cfafce9575319fb6f70080fbe226e5617e3b (patch) | |
tree | e1e0a276860f74ee0fe6747c8455a8ec0e7c2d03 /include/net/netns | |
parent | 671011720baa222b6de667cd688aed4dc8908924 (diff) | |
download | blackbird-op-linux-65c0cfafce9575319fb6f70080fbe226e5617e3b.tar.gz blackbird-op-linux-65c0cfafce9575319fb6f70080fbe226e5617e3b.zip |
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/netns')
-rw-r--r-- | include/net/netns/generic.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/net/netns/generic.h b/include/net/netns/generic.h index 0c04fd2a700b..ff4982ab84b6 100644 --- a/include/net/netns/generic.h +++ b/include/net/netns/generic.h @@ -12,9 +12,11 @@ * stuff on the struct net without explicit struct net modification * * The rules are simple: - * 1. register the ops with register_pernet_gen_device to get the id - * of your private pointer; - * 2. call net_assign_generic() to put the private data on the struct + * 1. set pernet_operations->id. After register_pernet_device you + * will have the id of your private pointer. + * 2. Either set pernet_operations->size (to have the code allocate and + * free a private structure pointed to from struct net ) or + * call net_assign_generic() to put the private data on the struct * net (most preferably this should be done in the ->init callback * of the ops registered); * 3. do not change this pointer while the net is alive; |