X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fnet%2Finet_common.h;h=18c773286b91744ccf0447b60597db3acc353f9a;hb=e043e42bdb66885b3ac10d27a01ccb9972e2b0a3;hp=38d5a1e9980da3a09f6e6f2c96122bbedf7cc21f;hpb=4fd3670eb1d3c33e8952cf1e79edbb2d517dcfb5;p=mv-sheeva.git diff --git a/include/net/inet_common.h b/include/net/inet_common.h index 38d5a1e9980..18c773286b9 100644 --- a/include/net/inet_common.h +++ b/include/net/inet_common.h @@ -39,6 +39,17 @@ extern int inet_getname(struct socket *sock, extern int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); +extern int inet_ctl_sock_create(struct sock **sk, + unsigned short family, + unsigned short type, + unsigned char protocol, + struct net *net); + +static inline void inet_ctl_sock_destroy(struct sock *sk) +{ + sk_release_kernel(sk); +} + #endif