drm_module_p...r_if_modeset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_module_pci_driver_if_modeset(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one is section 9, and the function/thing we're talking about is literally named drm_module_pci_driver_if_modeset (the header up top shortens it to drm_module_p...r_if_modeset(9) because apparently even the manpage got tired halfway through typing it 😭). Let's get into it 🫢


🌸 NAME 🌸

drm_module_pci_driver_if_modeset β€” Register a DRM driver for PCI-based devices ✨


πŸŽ€ SYNOPSIS πŸŽ€

drm_module_pci_driver_if_modeset (__pci_drv , __modeset );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • __pci_drv β€” the PCI driver structure, the main character of this whole situation πŸ‘‘
  • __modeset β€” an additional parameter that disables the driver, iykyk πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

🚨 bestie listen β€” this macro is deprecated and it's only hanging around for existing drivers. It's giving legacy energy fr fr. For new drivers, use drm_module_pci_driver instead, periodt. πŸ’…

So what does it actually do? It registers a DRM driver for devices on the PCI bus ✨

The helper macro behaves like drm_module_pci_driver with an additional driver-specific flag. And the flag's whole vibe check goes like this:

  • If __modeset is 0, the driver has been disabled πŸ’€
  • If __modeset is -1, the driver state depends on the global DRM state 🌈
  • For all other values, the PCI driver has been enabled πŸ”₯

And the default should be -1 β€” that's the one to go with unless you've got a reason, ngl 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, no cap πŸ§šπŸ’œ it lives under ./include/drm and the manpage date is October 2026, filed under the name drm_module_p...r_if_modeset(9) β€” go forth and register your PCI drivers responsibly, bestie πŸŽ€πŸŒŸπŸ“

πŸ“¦ where this page comes from