pci_map_rom(9)
π NAME π
Okay bestie, this is pci_map_rom from the Kernel API Manual, and its whole serve is mapping a PCI ROM to kernel space. Periodt. β¨
πΈ SYNOPSIS πΈ
The signature is giving low-level but iconic:
void __iomem * pci_map_rom (struct pci_dev *pdev , size_t *size );
π ARGUMENTS π
pdevβ pointer topci device struct. Like, hand over the PCI device struct pointer and weβre cooking. π«Άsizeβ pointer to receive size ofpci window over ROM. Itβs the βhey, put the size hereβ bestie of the operation. π
π« RETURN π«
It returns a kernel virtual pointer to image of ROM. Thatβs the whole return vibe, no cap. π
π¦ DESCRIPTION π¦
This maps a PCI ROM into kernel space. Important caveat: if the ROM is the boot video ROM, the shadow BIOS copy will be returned instead of the actual ROM. So youβre not getting the actual ROM in that case β youβre getting the shadow BIOS copy. Noted, bestie. ππ
π₯ SEE ALSO π₯
The kernel file ./drivers/pci/rom.c plus these function besties:
iykyk β theyβre all in the ROM lore. π§β¨
sign-off tea: source/version is ./drivers/pci, date is October 2026, and this page is pci_map_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