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>
This commit is contained in:

committed by
David S. Miller

parent
ff3c44e675
commit
f4a00aacdb
@@ -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,
|
||||
|
Reference in New Issue
Block a user