diff options
author | Tom Herbert <tom@herbertland.com> | 2016-03-08 01:11:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-10 00:36:13 +0300 |
commit | f4a00aacdb5f6784d46e8c999b6bb52ece4b306b (patch) | |
tree | 6f6c67bede3482e965eef8cda5e82f3cf7fbecb1 /include/linux/net.h | |
parent | ff3c44e675054533403909ecb76e78c1d4efbd26 (diff) | |
download | linux-f4a00aacdb5f6784d46e8c999b6bb52ece4b306b.tar.xz |
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 'include/linux/net.h')
-rw-r--r-- | include/linux/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index 0b4ac7da583a..49175e4ced11 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -215,6 +215,7 @@ int __sock_create(struct net *net, int family, int type, int proto, int sock_create(int family, int type, int proto, struct socket **res); int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res); int sock_create_lite(int family, int type, int proto, struct socket **res); +struct socket *sock_alloc(void); void sock_release(struct socket *sock); int sock_sendmsg(struct socket *sock, struct msghdr *msg); int sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, |