pci_write_legacy_io(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 β€” the struct bin_attribute for 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


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