---
name: "pci_read_legacy_io"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_read_legacy_io"
---

# pci\_read\_legacy\_io(9)

read byte(s) from legacy I/O port space

## NAME

pci\_read\_legacy\_io - read byte(s) from legacy I/O port space

## SYNOPSIS

**ssize\_t pci\_read\_legacy\_io(struct file \*** *filp***, struct kobject \*** *kobj***, struct bin\_attribute \*** *bin\_attr***, char \*** *buf***, loff\_t** *off***, size\_t** *count***);**

## ARGUMENTS

*filp*

open sysfs file

*kobj*

kobject corresponding to file to read from

*bin\_attr*

struct bin\_attribute for this file

*buf*

buffer to store results

*off*

offset into legacy I/O port space

*count*

number of bytes to read

## DESCRIPTION

Reads 1, 2, or 4 bytes from legacy I/O port space using an arch specific callback routine (pci\_legacy\_read).

## COPYRIGHT
