Loading include/linux/net.h +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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(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_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); int sock_create_lite(int family, int type, int proto, struct socket **res); struct socket *sock_alloc(void); void sock_release(struct socket *sock); void sock_release(struct socket *sock); int sock_sendmsg(struct socket *sock, struct msghdr *msg); int sock_sendmsg(struct socket *sock, struct msghdr *msg); int sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, Loading net/socket.c +2 −1 Original line number Original line Diff line number Diff line Loading @@ -533,7 +533,7 @@ static const struct inode_operations sockfs_inode_ops = { * NULL is returned. * NULL is returned. */ */ static struct socket *sock_alloc(void) struct socket *sock_alloc(void) { { struct inode *inode; struct inode *inode; struct socket *sock; struct socket *sock; Loading @@ -554,6 +554,7 @@ static struct socket *sock_alloc(void) this_cpu_add(sockets_in_use, 1); this_cpu_add(sockets_in_use, 1); return sock; return sock; } } EXPORT_SYMBOL(sock_alloc); /** /** * sock_release - close a socket * sock_release - close a socket Loading Loading
include/linux/net.h +1 −0 Original line number Original line Diff line number Diff line Loading @@ -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(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_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); int sock_create_lite(int family, int type, int proto, struct socket **res); struct socket *sock_alloc(void); void sock_release(struct socket *sock); void sock_release(struct socket *sock); int sock_sendmsg(struct socket *sock, struct msghdr *msg); int sock_sendmsg(struct socket *sock, struct msghdr *msg); int sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, Loading
net/socket.c +2 −1 Original line number Original line Diff line number Diff line Loading @@ -533,7 +533,7 @@ static const struct inode_operations sockfs_inode_ops = { * NULL is returned. * NULL is returned. */ */ static struct socket *sock_alloc(void) struct socket *sock_alloc(void) { { struct inode *inode; struct inode *inode; struct socket *sock; struct socket *sock; Loading @@ -554,6 +554,7 @@ static struct socket *sock_alloc(void) this_cpu_add(sockets_in_use, 1); this_cpu_add(sockets_in_use, 1); return sock; return sock; } } EXPORT_SYMBOL(sock_alloc); /** /** * sock_release - close a socket * sock_release - close a socket Loading