X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Finet_common.h;h=18c773286b91744ccf0447b60597db3acc353f9a;hb=58ec3b4db9eb5a28e3aec5f407a54e28f7039c19;hp=38d5a1e9980da3a09f6e6f2c96122bbedf7cc21f;hpb=0048e1c44a4529d4ea93e6920fa5468730c68c94;p=linux-2.6-omap-h63xx.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