screen_info_pci_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ screen_info_pci_dev(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual β€” this page is short, sweet, and lowkey iconic. It's all about returning the PCI parent device that contains screen_info's framebuffer. no cap, that's the whole vibe πŸ’…


✨ NAME ✨

screen_info_pci_dev β€” return the PCI parent device that contains screen_info's framebuffer πŸ¦‹

🌸 SYNOPSIS 🌸

struct pci_dev * screen_info_pci_dev (const struct screen_info *si );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • si β€” the screen_info πŸ‘‘ literally the thing you're passing in

πŸ’– RETURN πŸ’–

This returns the screen_info's parent device, or NULL on success β€” yes bestie, NULL on success, that's what it says β€” or a pointer-encoded errno value otherwise.

important vibe check: the value NULL is not an error. It's just signaling that no PCI device has been found. periodt 🫢

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/video/screen_info_pci.c πŸ“

cute little sign-off πŸ’‹: this page comes from ./drivers/video, and it's dated October 2026. mwah ✨

πŸ“¦ where this page comes from