.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SK_WAIT_DATA" "9" "09 October 2005" "" ""
.SH NAME
sk_wait_data \- wait for data to arrive at sk_receive_queue
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int sk_wait_data (struct sock * \fIsk\fB, long * \fItimeo\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsk\fB\fR
sock to wait on
.TP
\fB\fItimeo\fB\fR
for how long
.SH "DESCRIPTION"
.PP
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 \fBschedule\fR only as optimization;
it is very likely that \fBrelease_sock\fR added new data.