pci_write_rom(9)
π 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 honestlykobjβ kernel object handle β¨bin_attrβ thestruct bin_attributefor this file πbufβ user input, no capoffβ 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
- 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