drm_dp_mst_...handle_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_dp_mst_hpd_irq_handle_event πŸ’…

okay bestie, welcome to the Kernel API Manual πŸŽ€ β€” this is the page for drm_dp_mst_hpd_irq_handle_event, and it's lowkey the function that handles your MST hotplug IRQ events. let's get into it πŸ¦‹


🌸 NAME 🌸

drm_dp_mst_hpd_irq_handle_event β€” MST hotplug IRQ handle MST event ✨ like, the function that deals with MST events when the hotplug interrupt comes knocking 🫢


⭐ SYNOPSIS ⭐

int drm_dp_mst_hpd_irq_handle_event (struct drm_dp_mst_topology_mgr *mgr
, const u8 *esi , u8 *ack , bool *handled );

no cap, that's the whole signature πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • mgr β€” the manager you're notifying the IRQ for πŸ’– like, this is the topology manager in question
  • esi β€” 4 bytes straight from SINK_COUNT_ESI 🌸 (yes, exactly 4, don't come at me with 3)
  • ack β€” 4 bytes used to ack events, starting from SINK_COUNT_ESI ✨
  • handled β€” whether the hpd interrupt was consumed or not πŸ‘€ (a lil bool so you know if it got ate)

πŸ’œ DESCRIPTION πŸ’œ

so the driver literally calls this when it detects a HPD IRQ πŸ”₯ β€” and it passes along the value of the DEVICE_SERVICE_IRQ_VECTOR_ESI0 with it. then the topology manager goes ahead and processes the sideband messages that came in, as indicated in that DEVICE_SERVICE_IRQ_VECTOR_ESI0, and it sets the corresponding flags that the Driver has to ack to the DP receiver later. periodt πŸ’…

heads up bestie 🚨 β€” the driver shall also call drm_dp_mst_hpd_irq_send_new_request if the 'handled' is set after calling this function. the whole point is to try to kick off a new request in the queue if the previous message transaction is completed 🧚 not me reminding you twice, but like, do it πŸ™ˆ

See also: drm_dp_mst_hpd_irq_send_new_request ⭐


🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/display/drm_dp_mst_topology.c β€” and the whole iconic friend group πŸ’–:


and that's the whole page bestie, iykyk πŸ¦‹ this lil icon comes from ./drivers/gpu/drm/display, dated October 2026, and it's filed under drm_dp_mst_...handle_event(9) β€” mwah, go read the source, ily πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from