amdgpu_irqdomain_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_irqdomain_map πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's a lil function from the DRM/amdgpu corner of the kernel, and it's literally just here to make virtual and hardware IRQ numbers be friends 🫢


πŸŽ€ NAME πŸŽ€

amdgpu_irqdomain_map β€” creates the mapping between virtual and hardware IRQ numbers, no cap πŸ’–


✨ SYNOPSIS ✨

int amdgpu_irqdomain_map (struct irq_domain *d , unsigned int irq ,
       irq_hw_number_t hwirq );

that's the whole vibe right there πŸ‘‘


🌸 ARGUMENTS 🌸

  • d β€” the amdgpu IRQ domain pointer β€” and yeah, plot twist, it's unused πŸ™ˆ (she's just here for moral support)
  • irq β€” the virtual IRQ number πŸ¦‹
  • hwirq β€” the hardware IRQ number ⭐

πŸ’œ DESCRIPTION πŸ’œ

So the current implementation? It assigns a simple interrupt handler to the virtual IRQ you passed in. That's it, that's the whole personality πŸ’… short, sweet, iconic.


πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay πŸŽ‰
  • an error code otherwise β€” not slay, but like, informative 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c and Interrupt Handling(9), plus the whole friend group:


and that's the page, bestie 🌈 this gem lives over in ./drivers/gpu/drm/amd/amdgpu, it's dated October 2026, and it's filed under amdgpu_irqdomain_map(9) in the Kernel API Manual πŸ’–βœ¨πŸŽ€ go forth and map those IRQs fr fr πŸ¦‹

πŸ“¦ where this page comes from