mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
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:
parent
ff3c44e675
commit
f4a00aacdb
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue