.\" 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 "PARPORT_WAIT_EVENT" "" "06 October 2005" "" "" .SH NAME parport_wait_event \- wait for an event on a parallel port .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int parport_wait_event (struct parport * \fIport\fB, signed long \fItimeout\fB); \fR .SH "ARGUMENTS" .TP \fB\fIport\fB\fR port to wait on .TP \fB\fItimeout\fB\fR time to wait (in jiffies) .SH "DESCRIPTION" .PP This function waits for up to \fItimeout\fR jiffies for an interrupt to occur on a parallel port. If the port timeout is set to zero, it returns immediately. .PP If an interrupt occurs before the timeout period elapses, this function returns one immediately. If it times out, it returns a value greater than zero. An error code less than zero indicates an error (most likely a pending signal), and the calling code should finish what it's doing as soon as it can.