drm_module_platform_driver(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 replaces module_init and module_exit, so it’s a whole main-character swap situation πŸ’€πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘


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