net_namespace.h (134e63756d5f3d0f7604dfcca847b09d1b14fd66) net_namespace.h (30ffee8480c13fbcf8ab6c28e31f79dfff683117)
1/*
2 * Operations on the network namespace
3 */
4#ifndef __NET_NET_NAMESPACE_H
5#define __NET_NET_NAMESPACE_H
6
7#include <asm/atomic.h>
8#include <linux/workqueue.h>

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

103 /* There is nothing to copy so this is a noop */
104 return net_ns;
105}
106#endif /* CONFIG_NET */
107
108
109extern struct list_head net_namespace_list;
110
1/*
2 * Operations on the network namespace
3 */
4#ifndef __NET_NET_NAMESPACE_H
5#define __NET_NET_NAMESPACE_H
6
7#include <asm/atomic.h>
8#include <linux/workqueue.h>

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

103 /* There is nothing to copy so this is a noop */
104 return net_ns;
105}
106#endif /* CONFIG_NET */
107
108
109extern struct list_head net_namespace_list;
110
111extern struct net *get_net_ns_by_pid(pid_t pid);
112
111#ifdef CONFIG_NET_NS
112extern void __put_net(struct net *net);
113
114static inline struct net *get_net(struct net *net)
115{
116 atomic_inc(&net->count);
117 return net;
118}

--- 150 unchanged lines hidden ---
113#ifdef CONFIG_NET_NS
114extern void __put_net(struct net *net);
115
116static inline struct net *get_net(struct net *net)
117{
118 atomic_inc(&net->count);
119 return net;
120}

--- 150 unchanged lines hidden ---