vga_remove_vgacon(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vga_remove_vgacon β€” it's giving "deactivate VGA console"

okay so bestie, pull up a chair, because we're in the kernel API manual (that's section 9, mwah) and today's main character is vga_remove_vgacon πŸŽ€


✨ SYNOPSIS ✨

int vga_remove_vgacon (struct pci_dev *pdev );

that's it. that's the whole vibe. one function, one arg, returns an int, slays πŸ’…


🌸 ARGUMENTS 🌸

  • pdev β€” a PCI device. yes literally just the PCI device, that's the whole parameter, she's lowkey simple like that πŸ¦‹

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea, bestie πŸ“: this function unbinds and unregisters vgacon β€” but only in the case where pdev is the default VGA device. like, she's not gonna go messing with vgacon unless it's actually the one holding the crown πŸ‘‘

GPU drivers can call this on initialization, and the whole point is: making sure that the VGA register access that vgacon does won't disturb the device. no cap, that's the reason. it's giving "please stop touching my registers" energy 😭

so if you're a GPU driver person: call this at init if you want vgacon to stop poking at your device. but fr fr only when pdev is the default VGA device, because that's literally the condition in the description πŸ”₯

🌈 SEE ALSO 🌈

go read the kernel file ./drivers/pci/vgaarb.c β€” that's where the family lives, iykyk πŸ’œ and also these icons:

like, the whole vgaarb friend group, obsessed honestly πŸ‘‘


and that's the page, bestie!! πŸ’– brought to you by ./drivers/pci β€” dated October 2026, which is so iconic of her. mwah, go forth and unregister that vgacon 🌸🫢✨

πŸ“¦ where this page comes from