amdgpu_irq_create_mapping(9)
π amdgpu_irq_create_mapping(9)
okay so bestie, this is a page straight out of the Kernel API Manual β yes, the Kernel API Manual, we're in the big leagues now π β and it's about amdgpu_irq_create_mapping, which is lowkey one of those tiny functions that makes the whole GPU interrupt situation work. summer job energy.
β¨ NAME β¨
amdgpu_irq_create_mapping β the function that creates a mapping between domain Linux IRQs π¦
πΈ SYNOPSIS πΈ
unsigned int amdgpu_irq_create_mapping (struct amdgpu_device *adev ,
unsigned int src_id );
like, it takes two things and gives you back a unsigned int. that's the whole vibe.
π«Ά ARGUMENTS π«Ά
adevβ your amdgpu device pointer, the main character of literally every function in this file πsrc_idβ the IH source id. IH as in Interrupt Handler, iykyk π
π DESCRIPTION π
so what it does: it creates a mapping between a domain IRQ β which is the GPU IH src_id β and a Linux IRQ. that's it. that's the function.
and the way you use it is specifically for components that generate a GPU interrupt but are driven by a different driver. the example the manpage gives is ACP, and honestly very demure, very mindful of them to mention it π
β RETURN β
returns a Linux IRQ. that's the whole return value. slay.
π¦ SEE ALSO π¦
the source file lives at ./drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c π β go read it, it's giving lore.
and here's the whole friend group, no cap, every single one:
- Interrupt Handling(9)
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_irqdomain_map(9)amdgpu_irq_add_domain(9)amdgpu_irq_remove_domain(9)
that's twenty entries plus the Interrupt Handling one, and yes I counted so you don't have to π
ngl the whole page is short but it ate. it's from./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's aamdgpu_irq_create_mapping(9)moment fr fr. go map some IRQs bestie, ily ππ·
π¦ 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