---
name: "pci_write_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_write_legacy_io"
---

# pci\_write\_legacy\_io(9)

write byte(s) to legacy I/O port space

## NAME

pci\_write\_legacy\_io - write byte(s) to legacy I/O port space

## SYNOPSIS

**ssize\_t pci\_write\_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 containing value to be written

*off*

offset into legacy I/O port space

*count*

number of bytes to write

## DESCRIPTION

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

## COPYRIGHT
