summaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2016-03-07 14:11:01 -0800
committerDavid S. Miller <davem@davemloft.net>2016-03-09 16:36:13 -0500
commitf4a00aacdb5f6784d46e8c999b6bb52ece4b306b (patch)
tree6f6c67bede3482e965eef8cda5e82f3cf7fbecb1 /net/socket.c
parentff3c44e675054533403909ecb76e78c1d4efbd26 (diff)
downloadlinux-stable-f4a00aacdb5f6784d46e8c999b6bb52ece4b306b.tar.gz
linux-stable-f4a00aacdb5f6784d46e8c999b6bb52ece4b306b.tar.bz2
linux-stable-f4a00aacdb5f6784d46e8c999b6bb52ece4b306b.zip
net: Make sock_alloc exportable
Export it for cases where we want to create sockets by hand. Signed-off-by: Tom Herbert <tom@herbertland.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 c044d1e8508c..38a78d4d50f5 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -533,7 +533,7 @@ static const struct inode_operations sockfs_inode_ops = {
* NULL is returned.
*/
-static struct socket *sock_alloc(void)
+struct socket *sock_alloc(void)
{
struct inode *inode;
struct socket *sock;
@@ -554,6 +554,7 @@ static struct socket *sock_alloc(void)
this_cpu_add(sockets_in_use, 1);
return sock;
}
+EXPORT_SYMBOL(sock_alloc);
/**
* sock_release - close a socket