]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
net: af_unix can make unix_nr_socks visbile in /proc
authorEric Dumazet <dada1@cosmosbay.com>
Mon, 17 Nov 2008 08:00:30 +0000 (00:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Nov 2008 08:00:30 +0000 (00:00 -0800)
commit248969ae31e1b3276fc4399d67ce29a5d81e6fd9
tree13b57b061262af3cb2fba0aa8384d67f999ba7c2
parentc3ccc12339afa2633c72131e2aa97d52d9ca1b8a
net: af_unix can make unix_nr_socks visbile in /proc

Currently, /proc/net/protocols displays socket counts only for TCP/TCPv6
protocols

We can provide unix_nr_socks for free here, this counter being
already maintained in af_unix

Before patch :

# grep UNIX /proc/net/protocols
UNIX       428     -1      -1   NI       0   yes  kernel

After patch :

# grep UNIX /proc/net/protocols
UNIX       428     98      -1   NI       0   yes  kernel

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c