drm_bridge_hpd_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_bridge_hpd_enable(9) β€” the Kernel API Manual glow-up πŸŽ€

okay bestie, welcome to the Kernel API Manual, the drm_bridge_hpd_enable(9) page specifically, and honestly? this one's giving "small function, big responsibilities." let's get into it ✨


🌸 NAME 🌸

drm_bridge_hpd_enable β€” turn on hot plug detection for the bridge. that's it, that's the vibe πŸ’–


✨ SYNOPSIS ✨

void drm_bridge_hpd_enable (struct drm_bridge *bridge , void (*cb)(void
*data, enum drm_connector_status status) , void *data );

like, literally just three things and you're off to the races 🏁


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bridge β€” the bridge control structure. your main character struct, the one you're doing all this for πŸ‘‘
  • cb β€” the hot-plug detection callback. the little function that gets tapped on the shoulder when something happens 🫢
  • data β€” the data that gets passed to that hot-plug detection callback. it's giving "plus one" energy, it comes along for the ride πŸ’œ

🧚 DESCRIPTION 🧚

so here's the tea, bestie: this function calls drm_bridge_funcs.hpd_enable if it's implemented, and then registers the cb and data you handed over as the hot plug notification callback. from that moment on, whenever the bridge detects an output status change, that cb gets called with your data. every single time. until hot plug notification gets disabled again with drm_bridge_hpd_disable. periodt πŸ’…

⚠️ okay important: hot plug detection is only supported if the DRM_BRIDGE_OP_HPD flag is set in bridge->ops. this function shall not be called when that flag is not set. like, don't. it's not a "try it and see" situation, ngl πŸ™ˆ

also, and this is the part people forget: only one hot plug detection callback can be registered at a time. so calling this function when hot plug detection is already enabled for the bridge? that's an error. one callback, one slot, no queue πŸŽ€


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, no cap:

iykyk πŸ”₯


and that's the whole page!! mwah πŸ’‹ this gem lives at ./drivers/gpu/drm, dated October 2026, and it's filed under drm_bridge_hpd_enable(9) β€” go read the source, bestie, it slays 🌈⭐

πŸ“¦ where this page comes from