1SK_WAIT_DATA(9) Linux Networking SK_WAIT_DATA(9)
2
3
4
6 sk_wait_data - wait for data to arrive at sk_receive_queue
7
9 int sk_wait_data(struct sock * sk, long * timeo);
10
12 sk
13 sock to wait on
14
15 timeo
16 for how long
17
19 Now socket state including sk->sk_err is changed only under lock, hence
20 we may omit checks after joining wait queue. We check receive queue
21 before schedule only as optimization; it is very likely that
22 release_sock added new data.
23
25Kernel Hackers Manual 2.6. June 2019 SK_WAIT_DATA(9)