amdgpu_irqdomain_map(9)
π 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 π₯
0on 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:
amdgpu_irq_disable_all(9)amdgpu_irq_handler(9)amdgpu_irq_handle_ih1(9)amdgpu_irq_handle_ih2(9)amdgpu_irq_handle_ih_soft(9)amdgpu_msi_ok(9)amdgpu_irq_init(9)amdgpu_irq_fini_sw(9)amdgpu_irq_add_id(9)amdgpu_irq_dispatch(9)amdgpu_irq_delegate(9)amdgpu_irq_update(9)amdgpu_irq_gpu_reset_resume_helper(9)amdgpu_irq_get(9)amdgpu_irq_put(9)amdgpu_irq_enabled(9)amdgpu_irq_add_domain(9)amdgpu_irq_remove_domain(9)amdgpu_irq_create_mapping(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms