vga_tryget(9)
π NAME π
okay so welcome to the vga_tryget(9) page from the Kernel API Manual, bestie π
and the name is literally giving: try to acquire & lock legacy VGA resources πΈ
β¨ SYNOPSIS β¨
int vga_tryget (struct pci_dev *pdev , unsigned int rsrc );
π ARGUMENTS π
pdevβ the PCI device of the VGA card, orNULLfor the system default π«Άrsrcβ a bit mask of the resources to acquire and lock β¨
π¦ DESCRIPTION π¦
So like, it performs the same operation as vga_get, but instead of blocking when the resources are already locked by another card, it returns an error (-EBUSY) π no waiting around, no cap.
It can be called in any context π
On success, release the VGA resource again with vga_put π
Return situation: 0 on success, negative error code on failure π
π SEE ALSO π
The lore lives in kernel file ./drivers/pci/vgaarb.c β go check out vga_default_device(9), vga_remove_vgacon(9), vga_get(9), vga_put(9), vga_set_legacy_decoding(9), and vga_client_register(9) π
mwah π source/version: ./drivers/pci; date: October 2026 β stay iconic, vga_tryget(9) 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