drm_helper_hpd_irq_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_helper_hpd_irq_event(9) β€” like, the hotplug processing era

okay so bestie, welcome to the Kernel API Manual entry for drm_helper_hpd_irq_event(9) β€” yes that's the name, yes it's a mouthful, no we're not shortening it, it's iconic πŸ’–


✨ NAME ✨

drm_helper_hpd_irq_event β€” hotplug processing, and honestly it's giving main character energy in the DRM helper cinematic universe πŸŽ€


✨ SYNOPSIS ✨

bool drm_helper_hpd_irq_event (struct drm_device *dev );

✨ ARGUMENTS ✨

  • dev β€” a drm_device, that's it, that's the whole argument, slay 🫢

✨ DESCRIPTION ✨

So here's the vibe: drivers can use this helper function to run a detect cycle on, like, all the connectors that have the DRM_CONNECTOR_POLL_HPD flag set in their polled member. All the other connectors? Ignored. Not invited to the party. Which is genuinely useful, because it means you avoid reprobing fixed panels β€” no cap, nobody wants that πŸ’€

This helper function is the moment for drivers which can't or don't track hotplug interrupts for each connector. If that's your driver, congrats, this is literally your function 🌸

Now, drivers which do support hotplug interrupts for each connector individually, and which have a more fine-grained detect logic, can use drm_connector_helper_hpd_irq_event instead. Alternatively β€” and this is the tea β˜• β€” they should bypass this code entirely and directly call drm_kms_helper_hotplug_event in case the connector state changed. iykyk.

⚠️ okay this part is important: this function must be called from process context with no mode setting locks held. Like, do not. I'm serious. πŸ™ˆ

Also note that a connector can be both polled and probed from the hotplug handler, in case the hotplug interrupt is known to be unreliable. Belt and suspenders, we love to see it πŸ¦‹


✨ RETURN ✨

A boolean indicating whether the connector status changed or not. true = something moved, false = nothing to see here ✨


✨ SEE ALSO ✨

the way that this list just keeps going, obsessed πŸ‘‘


and that's the whole page, bestie πŸ§šπŸ’œ

this icon lives in ./drivers/gpu/drm and the version stamp says October 2026 β€” so yeah, stay tuned, she's from the future πŸ’…β­ bye mwah πŸ“

πŸ“¦ where this page comes from