amdgpu_dm_irq_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_dm_irq_set(9) β€” kernel API manual, but make it make sense

okay so bestie, welcome to the section 9 glow-up of amdgpu_dm_irq_set πŸŽ€ this is a kernel API manual page and it's genuinely iconic once you get past the acronyms, i promise.


✨ NAME ✨

amdgpu_dm_irq_set β€” enable or disable a DC interrupt source. that's the whole gig πŸ’…


🌸 SYNOPSIS 🌸

bool amdgpu_dm_irq_set (struct amdgpu_device *adev , enum dc_irq_source
src , bool enable );

like, it takes three things and hands you back a bool. slay.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adev β€” the AMD DRM device. your main character hardware fr.
  • src β€” the DC interrupt source you wanna toggle. pick your fighter πŸŽ€
  • enable β€” true to enable the source, false to disable it. binary queen behavior, no cap.

πŸ”₯ DESCRIPTION πŸ”₯

so this is the DM-wide replacement for dc_interrupt_set. lowkey important: since locking is DM's responsibility, this function is a thin wrapper that serializes the underlying read-modify-write against all the other interrupt sources that share HW control registers with src. it's giving "we share a locker, we communicate" energy 🫢

and because of all that shared-register drama, DM must never call dc_interrupt_set directly. like, not ever. that's the rule, periodt πŸ’€

πŸ‘‘ RETURN πŸ‘‘

returns true if the source was toggled. that's it, that's the return value ✨


🌈 SEE ALSO 🌈

kernel file ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h β€” go read it, it's the vibe check

and the whole friend group:


and that's the page, bestie πŸ’– this cutie lives at ./drivers/gpu/drm/amd/display/... and the date stamp on this whole lewk is October 2026 β€” so yeah, take the notes, study the notes, and go toggle some interrupt sources responsibly πŸŒΈπŸ’…πŸŽ€

πŸ“¦ where this page comes from