---
name: "parport_wait_event"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/parport_wait_event"
---

# parport\_wait\_event(9)

wait for an event on a parallel port

## NAME

parport\_wait\_event - wait for an event on a parallel port

## SYNOPSIS

**int parport\_wait\_event(struct parport \*** *port***, signed long** *timeout***);**

## ARGUMENTS

*port*

port to wait on

*timeout*

time to wait (in jiffies)

## DESCRIPTION

This function waits for up to *timeout* jiffies for an interrupt to occur on a parallel port. If the port timeout is set to zero, it returns immediately.

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's doing as soon as it can.

## COPYRIGHT
