amdgpu_irq_add_id(9)
π amdgpu_irq_add_id(9) β from the Kernel API Manual, bestie
okay so picture this: you're deep in the kernel, you've got an amdgpu device, and you need to tell it about an interrupt source. that's literally this function. welcome π«Ά
β¨ NAME β¨
amdgpu_irq_add_id β register IRQ source π
π SYNOPSIS π
int amdgpu_irq_add_id (struct amdgpu_device *adev , unsigned int
client_id , unsigned int src_id , struct amdgpu_irq_src *source );
like yes, that's the whole signature, no cap. four args, one int coming back at you π
πΈ ARGUMENTS πΈ
adevβ the amdgpu device pointer. your main character, fr π¦client_idβ the client id. that's it, that's the description πsrc_idβ the source id. also exactly what it sounds like β¨sourceβ the IRQ source pointer. the actual thing you're registering π
π DESCRIPTION π
so what does it do? it registers an IRQ source on a client. that's the whole vibe. iconic, lowkey minimal, but that's the job π
β RETURN β
0 on success, or an error code otherwise. like, if it's not 0, something went sideways bestie π
π₯ SEE ALSO π₯
the whole friend group, no one left out π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c 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_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)amdgpu_irq_create_mapping(9)
ngl this one's short but she's doing her best and she's slaying at it π§
and that's a wrap!! this came out of ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's your girl amdgpu_irq_add_id(9) signing off πβ¨π
π¦ 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