diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-29 19:54:11 -0500 |
---|---|---|
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) |
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 { | |||
66 | 66 | ||
67 | #define peer_wait peer_wq.wait | 67 | #define peer_wait peer_wq.wait |
68 | 68 | ||
69 | long unix_inq_len(struct sock *sk); | ||
70 | long unix_outq_len(struct sock *sk); | ||
71 | |||
69 | #ifdef CONFIG_SYSCTL | 72 | #ifdef CONFIG_SYSCTL |
70 | extern int unix_sysctl_register(struct net *net); | 73 | extern int unix_sysctl_register(struct net *net); |
71 | extern void unix_sysctl_unregister(struct net *net); | 74 | extern void unix_sysctl_unregister(struct net *net); |