sk_wait_data(9)

sk_wait_data9

Wait for data to arrive at sk_receive_queue

Usage

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

Arguments

sk

sock to wait on

timeo

for how long

skb

last skb seen on sk_receive_queue

Overview

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.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.