pci_write_rom(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pci_write_rom(9) β€” Kernel API Manual πŸ’–

okay bestie, this is pci_write_rom(9) from the Kernel API Manual, and it's literally the sysfs write hook for the PCI ROM display vibes. Let's get into it ✨


🌸 NAME 🌸

pci_write_rom β€” used to enable access to the PCI ROM display 🫢

✨ SYNOPSIS ✨

       ssize_t pci_write_rom (struct file *filp , struct kobject *kobj , const
       struct bin_attribute *bin_attr , char *buf , loff_t off , size_t count
       );

πŸŽ€ ARGUMENTS πŸŽ€

  • filp β€” the sysfs file, iconic honestly
  • kobj β€” kernel object handle ✨
  • bin_attr β€” the struct bin_attribute for this file πŸŽ€
  • buf β€” user input, no cap
  • off β€” file offset πŸ’…
  • count β€” number of byte in input 🌸

πŸ¦‹ DESCRIPTION πŸ¦‹

Writing a boolean value enables or disables the ROM display. That's the whole plot, bestie β€” boolean in, ROM display on or off πŸ”₯

πŸ’… SEE ALSO πŸ’…

Kernel file ./drivers/pci/pci-sysfs.c, plus the whole bestie lineup: pci_read_legacy_io(9), pci_write_legacy_io(9), pci_mmap_legacy_mem(9), pci_mmap_legacy_io(9), pci_mmap_resource(9), and pci_read_rom(9) 🌈


mwah πŸ’‹ β€” source/version ./drivers/pci, dated October 2026, and yeah, it's still pci_write_rom(9) πŸ’œ

πŸ“¦ where this page comes from