---
name: "parport_open"
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_open"
---

# parport\_open(9)

find a device by canonical device number

## NAME

parport\_open - find a device by canonical device number

## SYNOPSIS

**struct pardevice \* parport\_open(int** *devnum***, const char \*** *name***);**

## ARGUMENTS

*devnum*

canonical device number

*name*

name to associate with the device

## DESCRIPTION

This function is similar to **parport\_register\_device**, except that it locates a device by its number rather than by the port it is attached to.

All parameters except for *devnum* are the same as for **parport\_register\_device**. The return value is the same as for **parport\_register\_device**.

## COPYRIGHT
