pci_is_display(9)
π pci_is_display(9) β Kernel API Manual, bestie edition π
okay so this one's a lil function from the <pink>Kernel API Manual</pink>, and honestly? it's giving "quick vibe check for your graphics card." let's get into it π«Ά
β¨ NAME β¨
pci_is_display β checks if the PCI device is a display controller π
πΈ SYNOPSIS πΈ
bool pci_is_display (struct pci_dev *pdev );
π¦ ARGUMENTS π¦
pdevβ the PCI device, that's it, that's the whole argument π
π DESCRIPTION π
so basically this function figures out whether the PCI device you handed it corresponds to a display controller. display controllers are typically used for graphical output, and they get identified based on their class code β that's the whole detective shtick, no cap πβ¨
β RETURN β
trueif the PCI device is a display controller πfalseotherwise π
literally the whole plot, one or the other, periodt π
π SEE ALSO π
the <purple>Kernel file</purple> ./include/linux/pci.h, plus this whole friend group of related APIs β go say hi, they're all iconic π:
enum pci_interrupt_pin(9)pci_channel_state_t(9)pci_is_bridge(9)pci_is_vga(9)struct pci_driver(9)PCI_DEVICE(9)PCI_DEVICE_DRIVER_OVERRIDE(9)PCI_DRIVER_OVERRIDE_DEVICE_VFIO(9)PCI_DEVICE_SUB(9)PCI_DEVICE_CLASS(9)PCI_VDEVICE(9)PCI_VDEVICE_SUB(9)PCI_DEVICE_DATA(9)pcie_capability_clear_and_set_word(9)pci_bus_for_each_resource(9)module_pci_driver(9)builtin_pci_driver(9)pci_irq_type(9)pci_irqd_intx_xlate(9)pci_resource_is_io(9)pci_resource_is_mem(9)pci_pcie_cap(9)pci_is_pcie(9)pcie_caps_reg(9)pci_pcie_type(9)pcie_find_root_port(9)pci_vpd_alloc(9)pci_vpd_find_id_string(9)pci_vpd_find_ro_info_keyword(9)pci_vpd_check_csum(9)pci_ari_enabled(9)pci_is_thunderbolt_attached(9)
π lowkey important: this only tells you what the device claims to be via its class code β it's not out here plugging in a monitor and checking for vibes, iykyk.
and that's the whole page, bestie π shipped from <purple>./include/linux</purple> back in <yellow>October 2026</yellow> β slay, historic, we stan an evergreen kernel doc πβ¨
π¦ 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