tipc: Add socket options to get number of queued messages
authoroscar.medina@motorola.com <oscar.medina@motorola.com>
Tue, 30 Jun 2009 03:25:39 +0000 (03:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jul 2009 02:16:11 +0000 (19:16 -0700)
commit6650613d3387dcc30685e2781818ea7d0f840027
tree395be1b4fe613f8016d306f5ba39b98630360740
parentaf794c74240d8d788058bdfee339512e7ac029b2
tipc: Add socket options to get number of queued messages

This patch allows a TIPC application to determine the number of messages
currently waiting in a socket's receive queue (TIPC_SOCK_RECVQ_DEPTH) or
in all TIPC socket receive queues (TIPC_NODE_RECVQ_DEPTH).

Signed-off-by: Oscar Medina <oscar.medina@motorola.com>
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tipc.h
net/tipc/socket.c