net: Add a struct net parameter to sock_create_kern
This is long overdue, and is part of cleaning up how we allocate kernel sockets that don't reference count struct net. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
140e807da1
commit
eeb1bd5c40
@@ -207,7 +207,7 @@ void sock_unregister(int family);
|
||||
int __sock_create(struct net *net, int family, int type, int proto,
|
||||
struct socket **res, int kern);
|
||||
int sock_create(int family, int type, int proto, struct socket **res);
|
||||
int sock_create_kern(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);
|
||||
void sock_release(struct socket *sock);
|
||||
int sock_sendmsg(struct socket *sock, struct msghdr *msg);
|
||||
|
Reference in New Issue
Block a user