table of contents
other versions
SK_WAIT_DATA(9) | Linux Networking | SK_WAIT_DATA(9) |
NAME¶
sk_wait_data - wait for data to arrive at sk_receive_queue
SYNOPSIS¶
int sk_wait_data(struct sock * sk, long * timeo, const struct sk_buff * skb);
ARGUMENTS¶
struct sock * sk
sock to wait on
long * timeo
for how long
const struct sk_buff * skb
last skb seen on sk_receive_queue
DESCRIPTION¶
Now socket state including sk->sk_err is changed only under lock, hence we may omit checks after joining wait queue. We check receive queue before schedule only as optimization; it is very likely that release_sock added new data.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |