1PARPORT_WAIT_EVENT(9) Parallel Port Devices PARPORT_WAIT_EVENT(9)
2
3
4
6 parport_wait_event - wait for an event on a parallel port
7
9 int parport_wait_event(struct parport * port, signed long timeout);
10
12 port
13 port to wait on
14
15 timeout
16 time to wait (in jiffies)
17
19 This function waits for up to timeout jiffies for an interrupt to occur
20 on a parallel port. If the port timeout is set to zero, it returns
21 immediately.
22
23 If an interrupt occurs before the timeout period elapses, this function
24 returns zero immediately. If it times out, it returns one. An error
25 code less than zero indicates an error (most likely a pending signal),
26 and the calling code should finish what it's doing as soon as it can.
27
29Kernel Hackers Manual 3.10 June 2019 PARPORT_WAIT_EVENT(9)