[ICSK]: Generalise tcp_listen_poll
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
2babe1f6fe
commit
dc40c7bc76
@@ -260,6 +260,16 @@ extern void inet_csk_reqsk_queue_prune(struct sock *parent,
|
||||
const unsigned long max_rto);
|
||||
|
||||
extern void inet_csk_destroy_sock(struct sock *sk);
|
||||
|
||||
/*
|
||||
* LISTEN is a special case for poll..
|
||||
*/
|
||||
static inline unsigned int inet_csk_listen_poll(const struct sock *sk)
|
||||
{
|
||||
return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ?
|
||||
(POLLIN | POLLRDNORM) : 0;
|
||||
}
|
||||
|
||||
extern int inet_csk_listen_start(struct sock *sk, const int nr_table_entries);
|
||||
extern void inet_csk_listen_stop(struct sock *sk);
|
||||
|
||||
|
Reference in New Issue
Block a user