net_namespace.h (7a0877d4b438886b72be61632eaa774d13262f70) net_namespace.h (59324cf35aba5336b611074028777838a963d03b)
1/*
2 * Operations on the network namespace
3 */
4#ifndef __NET_NET_NAMESPACE_H
5#define __NET_NET_NAMESPACE_H
6
7#include <linux/atomic.h>
8#include <linux/workqueue.h>

--- 258 unchanged lines hidden (view full) ---

267#else
268#define __net_init __init
269#define __net_exit __exit_refok
270#define __net_initdata __initdata
271#define __net_initconst __initconst
272#endif
273
274int peernet2id_alloc(struct net *net, struct net *peer);
1/*
2 * Operations on the network namespace
3 */
4#ifndef __NET_NET_NAMESPACE_H
5#define __NET_NET_NAMESPACE_H
6
7#include <linux/atomic.h>
8#include <linux/workqueue.h>

--- 258 unchanged lines hidden (view full) ---

267#else
268#define __net_init __init
269#define __net_exit __exit_refok
270#define __net_initdata __initdata
271#define __net_initconst __initconst
272#endif
273
274int peernet2id_alloc(struct net *net, struct net *peer);
275int peernet2id(struct net *net, struct net *peer);
276bool peernet_has_id(struct net *net, struct net *peer);
275struct net *get_net_ns_by_id(struct net *net, int id);
276
277struct pernet_operations {
278 struct list_head list;
279 int (*init)(struct net *net);
280 void (*exit)(struct net *net);
281 void (*exit_batch)(struct list_head *net_exit_list);
282 int *id;

--- 90 unchanged lines hidden ---
277struct net *get_net_ns_by_id(struct net *net, int id);
278
279struct pernet_operations {
280 struct list_head list;
281 int (*init)(struct net *net);
282 void (*exit)(struct net *net);
283 void (*exit_batch)(struct list_head *net_exit_list);
284 int *id;

--- 90 unchanged lines hidden ---