'\" t .\" Title: parport_wait_event .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Parallel Port Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PARPORT_WAIT_EVENT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Parallel Port Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" parport_wait_event \- wait for an event on a parallel port .SH "SYNOPSIS" .HP \w'int\ parport_wait_event('u .BI "int parport_wait_event(struct\ parport\ *\ " "port" ", signed\ long\ " "timeout" ");" .SH "ARGUMENTS" .PP \fIport\fR .RS 4 port to wait on .RE .PP \fItimeout\fR .RS 4 time to wait (in jiffies) .RE .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 zero immediately\&. If it times out, it returns one\&. An error code less than zero indicates an error (most likely a pending signal), and the calling code should finish what it\*(Aqs doing as soon as it can\&. .SH "COPYRIGHT" .br