Skip to content

Commit

Permalink
net: Export __sock_create
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Emelyanov <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
xemul authored and J. Bruce Fields committed Oct 1, 2010
1 parent 37aa213 commit 721db93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/linux/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ enum {
extern int sock_wake_async(struct socket *sk, int how, int band);
extern int sock_register(const struct net_proto_family *fam);
extern void sock_unregister(int family);
extern int __sock_create(struct net *net, int family, int type, int proto,
struct socket **res, int kern);
extern int sock_create(int family, int type, int proto,
struct socket **res);
extern int sock_create_kern(int family, int type, int proto,
Expand Down
3 changes: 2 additions & 1 deletion net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ int sock_wake_async(struct socket *sock, int how, int band)
}
EXPORT_SYMBOL(sock_wake_async);

static int __sock_create(struct net *net, int family, int type, int protocol,
int __sock_create(struct net *net, int family, int type, int protocol,
struct socket **res, int kern)
{
int err;
Expand Down Expand Up @@ -1256,6 +1256,7 @@ static int __sock_create(struct net *net, int family, int type, int protocol,
rcu_read_unlock();
goto out_sock_release;
}
EXPORT_SYMBOL(__sock_create);

int sock_create(int family, int type, int protocol, struct socket **res)
{
Expand Down

0 comments on commit 721db93

Please sign in to comment.