amdgpu_irq_add_domain(9)
π amdgpu_irq_add_domain(9) β the Kernel API Manual of it all
okay so this is amdgpu_irq_add_domain(9) from the Kernel API Manual, and bestie, it's shorter than your attention span during a lecture but it still slays. it's a kernel function, it does one thing, and it does it well. periodt. π
β¨ NAME β¨
amdgpu_irq_add_domain β literally creates a linear IRQ domain. that's the whole job. iconic honestly.
π¦ SYNOPSIS π¦
int amdgpu_irq_add_domain (struct amdgpu_device *adev );
ok so you pass in the device pointer and it hands you back an int. we love a simple signature. no cap.
π ARGUMENTS π
adevβ this is your amdgpu device pointer, the main character of the whole amdgpu situation. you give it the device, it gives you (hopefully) zero. π€
πΈ DESCRIPTION πΈ
so what it does is it creates an IRQ domain for GPU interrupt sources that might be driven by another driver. yes, another one. like ACP for example β it's giving "i can't do this alone and that's okay". π«Ά
the way this thing exists is to be the shared hallway where the amdgpu interrupts and some other driver's interrupts can both live. mutual cooperation. networking. a little collab. π
π RETURN π
0on success β¨ (the best number, the only number we stan)- an error code otherwise π (boo, but at least it tells you)
π₯ SEE ALSO π₯
okay this list is long because the amdgpu IRQ code is a whole friend group, and honestly we respect that.
the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c β that's the home base, the group chat where all of these hang out:
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_remove_domain(9)amdgpu_irq_create_mapping(9)
yeah. that's the whole crew. go read them, iykyk. π
quick vibe check: this domain is for GPU interrupt sources that may be driven by another driver β so if you're wondering why amdgpu is sharing its toys, that's why. sharing is caring, bestie. π§
and that's the page, fr fr. brought to you by the source at ./drivers/gpu/drm/amd/amdgpu, dated October 2026, version amdgpu_irq_add_domain(9) π β stay hydrated, read your kernel docs, and remember: zero on success is the only number we accept. ππ
π¦ 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