Scroll to navigation

PCI_WRITE_LEGACY_IO(9) Hardware Interfaces PCI_WRITE_LEGACY_IO(9)

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

struct file * filp
open sysfs file

struct kobject * kobj

kobject corresponding to file to read from

struct bin_attribute * bin_attr

struct bin_attribute for this file

char * buf

buffer containing value to be written

loff_t off

offset into legacy I/O port space

size_t 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

July 2017 Kernel Hackers Manual 4.11