mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
David S. Miller
parent
257b529876
commit
885ee74d5d
@@ -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);
|
||||
|
Reference in New Issue
Block a user