]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/unix/af_unix.c
net: af_unix can make unix_nr_socks visbile in /proc
[linux-2.6-omap-h63xx.git] / net / unix / af_unix.c
index 58db2a2f115a73de5f8bd8b6204837e733776cf8..a1eb5969712c93805b6aa3cc2245635eff576b60 100644 (file)
@@ -566,9 +566,10 @@ static const struct proto_ops unix_seqpacket_ops = {
 };
 
 static struct proto unix_proto = {
-       .name     = "UNIX",
-       .owner    = THIS_MODULE,
-       .obj_size = sizeof(struct unix_sock),
+       .name                   = "UNIX",
+       .owner                  = THIS_MODULE,
+       .sockets_allocated      = &unix_nr_socks,
+       .obj_size               = sizeof(struct unix_sock),
 };
 
 /*