vga_set_legacy_decoding(9)
π NAME π
vga_set_legacy_decoding(9) β okay bestie, this is the Kernel API Manual page for vga_set_legacy_decoding. It's giving "tell the arbiter what's up with legacy decoding," and honestly? Iconic. π
β¨ SYNOPSIS β¨
void vga_set_legacy_decoding (struct pci_dev *pdev , unsigned int
decodes );
π¦ ARGUMENTS π¦
pdevβ PCI device of the VGA card. That's the card we're talking about, no cap. πdecodesβ bit mask of what legacy regions the card decodes. Like, which legacy regions are getting a yes from this card. π
π DESCRIPTION π
Okay so the whole point is indicating to the arbiter if the card decodes legacy VGA IOs, legacy VGA Memory, both, or none. Literally the legacy-decoding vibe check. β¨
All cards default to both. So the card driver (fbdev for example) should tell the arbiter if it has disabled legacy decoding β that way the card can be left out of the arbitration process, and can be safe to take interrupts at any time. π«Ά
π SEE ALSO π
Kernel file ./drivers/pci/vgaarb.c β plus these iconic references: vga_default_device(9), vga_remove_vgacon(9), vga_get(9), vga_tryget(9), vga_put(9), vga_client_register(9). π§
Mwah π β the source/version line is ./drivers/pci, dated October 2026. Stay iconic, bestie. π
π¦ 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