diff options
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 *); | |||
264 | extern int register_pernet_device(struct pernet_operations *); | 264 | extern int register_pernet_device(struct pernet_operations *); |
265 | extern void unregister_pernet_device(struct pernet_operations *); | 265 | extern void unregister_pernet_device(struct pernet_operations *); |
266 | 266 | ||
267 | static inline int register_pernet_gen_subsys(int *id, struct pernet_operations *ops) | ||
268 | { | ||
269 | ops->id = id; | ||
270 | return register_pernet_subsys(ops); | ||
271 | } | ||
272 | |||
273 | static inline void unregister_pernet_gen_subsys(int id, struct pernet_operations *ops) | ||
274 | { | ||
275 | return unregister_pernet_subsys(ops); | ||
276 | } | ||
277 | |||
278 | static inline int register_pernet_gen_device(int *id, struct pernet_operations *ops) | ||
279 | { | ||
280 | ops->id = id; | ||
281 | return register_pernet_device(ops); | ||
282 | } | ||
283 | |||
284 | static inline void unregister_pernet_gen_device(int id, struct pernet_operations *ops) | ||
285 | { | ||
286 | return unregister_pernet_device(ops); | ||
287 | } | ||
288 | |||
289 | struct ctl_path; | 267 | struct ctl_path; |
290 | struct ctl_table; | 268 | struct ctl_table; |
291 | struct ctl_table_header; | 269 | struct ctl_table_header; |