diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-30 00:54:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-30 16:45:45 -0500 |
commit | 885ee74d5d3058e4a904671ed7929c9540c95fa5 (patch) | |
tree | 83420dadda4c863a7bcebedf291f4d7009ffbb5f /include/net/af_unix.h | |
parent | 257b529876cb45ec791eaa89e3d2ee0d16b49383 (diff) | |
download | linux-stable-885ee74d5d3058e4a904671ed7929c9540c95fa5.tar.gz linux-stable-885ee74d5d3058e4a904671ed7929c9540c95fa5.tar.bz2 linux-stable-885ee74d5d3058e4a904671ed7929c9540c95fa5.zip |
af_unix: Move CINQ/COUTQ code to helpers
Currently tcp diag reports rqlen and wqlen values similar to how
the CINQ/COUTQ iotcls do. To make unix diag report these values
in the same way move the respective code into helpers.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/af_unix.h')
-rw-r--r-- | include/net/af_unix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index 63b17816e0ba..5a4e29b168c9 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h @@ -66,6 +66,9 @@ struct unix_sock { #define peer_wait peer_wq.wait +long unix_inq_len(struct sock *sk); +long unix_outq_len(struct sock *sk); + #ifdef CONFIG_SYSCTL extern int unix_sysctl_register(struct net *net); extern void unix_sysctl_unregister(struct net *net); |