tonga_ih_irq_init(9)
π tonga_ih_irq_init π
okay so welcome to the Kernel API Manual bestie, today we're looking at tonga_ih_irq_init(9) β the interrupt ring's glow-up era β¨
πΈ NAME πΈ
tonga_ih_irq_init β init and enable the interrupt ring, no cap π
β¨ SYNOPSIS β¨
int tonga_ih_irq_init (struct amdgpu_device *adev );
like, it takes exactly one thing and gives you back an int, that's the whole vibe π
π¦ ARGUMENTS π¦
adevβ anamdgpu_devicepointer. that's it. that's the argument. she's carrying the whole device in her bag π«Ά
π₯ DESCRIPTION π₯
so here's the tea β β this function allocates a ring buffer for the interrupt controller, enables the RLC, disables interrupts, then enables the IH ring buffer and enables it (VI). literally the full get-ready-with-me routine π
she gets called at device load and reume (yes that's how it's spelled in the source, love her anyway π). returns 0 for success, and errors for failure β so check your return value, bestie, don't just ignore it π
π nothing in this one is deprecated or dangerous, she's just doing her ring-buffer admin and minding her business
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/tonga_ih.c tonga_ih_enable_interrupts(9)tonga_ih_disable_interrupts(9)tonga_ih_irq_disable(9)tonga_ih_get_wptr(9)tonga_ih_decode_iv(9)tonga_ih_set_rptr(9)
the whole tonga_ih friend group, they all link up, iykyk π
and that's the page!! π§ this one lives under ./drivers/gpu/drm/amd/amdgpu, dated October 2026, in the Kernel API Manual β mwah, slay, periodt π
βπ
π¦ 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