aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/inet_connection_sock.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h
index 4d7e708c07d1..8a87a3a4f107 100644
--- a/include/net/inet_connection_sock.h
+++ b/include/net/inet_connection_sock.h
@@ -260,6 +260,16 @@ extern void inet_csk_reqsk_queue_prune(struct sock *parent,
260 const unsigned long max_rto); 260 const unsigned long max_rto);
261 261
262extern void inet_csk_destroy_sock(struct sock *sk); 262extern void inet_csk_destroy_sock(struct sock *sk);
263
264/*
265 * LISTEN is a special case for poll..
266 */
267static inline unsigned int inet_csk_listen_poll(const struct sock *sk)
268{
269 return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ?
270 (POLLIN | POLLRDNORM) : 0;
271}
272
263extern int inet_csk_listen_start(struct sock *sk, const int nr_table_entries); 273extern int inet_csk_listen_start(struct sock *sk, const int nr_table_entries);
264extern void inet_csk_listen_stop(struct sock *sk); 274extern void inet_csk_listen_stop(struct sock *sk);
265 275