---
name: "parport_device_num"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/parport_device_num"
---

# parport\_device\_num(9)

convert device coordinates

## NAME

parport\_device\_num - convert device coordinates

## SYNOPSIS

**int parport\_device\_num(int** *parport***, int** *mux***, int** *daisy***);**

## ARGUMENTS

*parport*

parallel port number

*mux*

multiplexor port number (-1 for no multiplexor)

*daisy*

daisy chain address (-1 for no daisy chain address)

## DESCRIPTION

This tries to locate a device on the given parallel port, multiplexor port and daisy chain address, and returns its device number or **-ENXIO** if no device with those coordinates exists.

## COPYRIGHT
