Skip to contentSkip to conversation

af_unix: Move CINQ/COUTQ code to helpers

PATCH Applied Pavel Emelyanov 2 participants 2 messages Dec 30, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 6/7 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.

---
 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
index 63b1781..5a4e29b 100644
@@ -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
maintainer
#1 lore raw

From: Pavel Emelyanov <[email protected]>
Date: Fri, 30 Dec 2011 14:54:11 +0400

Quoted 5 lines

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.

Applied with some minor indentation fixes, thanks.