summaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-14 16:39:56 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-15 15:34:42 -0500
commitd8d211a2a0c37755a8660dc69f97b7c70bf210b1 (patch)
tree49d0a3170f0e540fb251891efa0d3d9d44ec4d0b /net/socket.c
parentbdc8587ad75d9a42a8165f932c2dfff4d5b877e4 (diff)
downloadlinux-d8d211a2a0c37755a8660dc69f97b7c70bf210b1.tar.bz2
net: Make extern and export get_net_ns()
This function will be used to obtain net of tun device. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
-rw-r--r--net/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index d83e804d5e65..ab58e57c09ca 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -990,10 +990,11 @@ static long sock_do_ioctl(struct net *net, struct socket *sock,
* what to do with it - that's up to the protocol still.
*/
-static struct ns_common *get_net_ns(struct ns_common *ns)
+struct ns_common *get_net_ns(struct ns_common *ns)
{
return &get_net(container_of(ns, struct net, ns))->ns;
}
+EXPORT_SYMBOL_GPL(get_net_ns);
static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg)
{