drm_module_platform_driver(9)
π drm_module_platform_driver(9) π
okay bestie, welcome to the Kernel API Manual entry for drm_module_platform_driver(9) β¨ this is the page where we register a DRM driver for platform devices, and yes it is giving very βsmall macro, big responsibilitiesβ energy π
πΈ NAME πΈ
drm_module_platform_driver β Register a DRM driver for platform devices π
β¨ SYNOPSIS β¨
drm_module_platform_driver (__platform_drv );
π¦ ARGUMENTS π¦
__platform_drvβ the platform driver structure, bestie π«Ά
π₯ DESCRIPTION π₯
So this one registers a DRM driver for devices on the platform bus π The helper macro behaves like module_platform_driver, but it tests the state of drm_firmware_drivers_only β no cap, thatβs literally what it does π
For more complex module initialization, use module_init and module_exit directly, okay? Donβt make the macro do too much if your setup is extra π
β οΈ warning bestie: each module may only use this macro once. Calling it replacesmodule_initandmodule_exit, so itβs a whole main-character swap situation ππ
π SEE ALSO π
- Kernel file
./include/drm/drm_module.hoverview(9)π drm_module_pci_driver(9)πdrm_module_pci_driver_if_modeset(9)β¨
Source/version + date check: this page comes from ./include/drm, dated October 2026, and it is the drm_module_platform_driver(9) manual entry π bye bestie, go register that platform DRM driver responsibly π§π
π¦ 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