af_unix: Move CINQ/COUTQ code to helpers
Subsystems (3)
PATCH 4/5 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 <[email protected]>
--- include/net/af_unix.h | 3 ++ net/unix/af_unix.c | 59 +++++++++++++++++++++++++++++------------------- 2 files changed, 39 insertions(+), 23 deletions(-)
include/net/af_unix.h +3 -0
@@ -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);
net/unix/af_unix.c +36 -23
75 lines not on this page · raw message
Signature · 1 line
1.5.5.6