diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-14 16:39:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-15 15:34:42 -0500 |
commit | d8d211a2a0c37755a8660dc69f97b7c70bf210b1 (patch) | |
tree | 49d0a3170f0e540fb251891efa0d3d9d44ec4d0b /include/linux | |
parent | bdc8587ad75d9a42a8165f932c2dfff4d5b877e4 (diff) |
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 'include/linux')
-rw-r--r-- | include/linux/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index 9286a5a8c60c..1ce1f768a58c 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -353,4 +353,6 @@ extern int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen unsigned int flags, struct timespec *timeout); extern int __sys_sendmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen, unsigned int flags); + +extern struct ns_common *get_net_ns(struct ns_common *ns); #endif /* _LINUX_SOCKET_H */ |