pci_write_legacy_io(9)
πΈ NAME πΈ
pci_write_legacy_io β write byte(s) to legacy I/O port space. This is the pci_write_legacy_io(9) page from the Kernel API Manual, bestie, and itβs giving tiny-but-important sysfs energy π
β¨
π SYNOPSIS π
ssize_t pci_write_legacy_io (struct file *filp , struct kobject *kobj ,
const struct bin_attribute *bin_attr , char *buf , loff_t off , size_t
count );
π§ ARGUMENTS π§
filpβ an open sysfs file. Main-character file handle vibes π«Άkobjβ the kobject corresponding to the file to read from. (Yes, it says βread fromβ β weβre just relaying the manual tea π«)bin_attrβ thestruct bin_attributefor this file.bufβ the buffer containing the value to be written.offβ the offset into legacy I/O port space.countβ the number of bytes to write.
π DESCRIPTION π
Okay so this one writes 1, 2, or 4 bytes from legacy I/O port space using an arch specific callback routine (pci_legacy_write). Thatβs the whole lore. No cap. π₯
π SEE ALSO π
Kernel file: ./drivers/pci/pci-sysfs.c
pci_read_legacy_io(9)pci_mmap_legacy_mem(9)pci_mmap_legacy_io(9)pci_mmap_resource(9)pci_write_rom(9)pci_read_rom(9)
okay bestie, thatβs the whole pci_write_legacy_io(9) page π it lives under ./drivers/pci, itβs dated October 2026, and thatβs the Kernel API Manual sign-off. periodt β¨π¦π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms