1SK_WAIT_DATA(9)                Linux Networking                SK_WAIT_DATA(9)
2
3
4

NAME

6       sk_wait_data - wait for data to arrive at sk_receive_queue
7

SYNOPSIS

9       int sk_wait_data(struct sock * sk, long * timeo,
10                        const struct sk_buff * skb);
11

ARGUMENTS

13       sk
14           sock to wait on
15
16       timeo
17           for how long
18
19       skb
20           last skb seen on sk_receive_queue
21

DESCRIPTION

23       Now socket state including sk->sk_err is changed only under lock, hence
24       we may omit checks after joining wait queue. We check receive queue
25       before schedule only as optimization; it is very likely that
26       release_sock added new data.
27
29Kernel Hackers Manual 3.10         June 2019                   SK_WAIT_DATA(9)
Impressum