tonga_ih_get_wptr(9)
π tonga_ih_get_wptr π
okay so bestie, welcome to the tonga_ih_get_wptr(9) page β yes that's the kernel API manual, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
tonga_ih_get_wptr β literally just, get the IH ring buffer wptr. that's the whole gig π
π¦ SYNOPSIS π¦
u32 tonga_ih_get_wptr (struct amdgpu_device *adev , struct
amdgpu_ih_ring *ih );
like, it hands you back a u32 and takes two pointers, no big deal β¨
πΈ ARGUMENTS πΈ
adevβ anamdgpu_devicepointer. yep, the classic. it's the device, she's the main character πihβ the IH ring buffer we're fetching the wptr from. that's the one, that's our girl π
π DESCRIPTION π
so what does she actually do, you ask? slay, glad you asked π
She gets the IH ring buffer wptr β and ngl, she's flexible about it: she pulls it from either the register or the writeback memory buffer (VI). iykyk. β¨
She also checks for ring buffer overflow and deals with it. like, not me being responsible?? we love a function that handles her own problems ππ₯
Oh and she's used by cz_irq_process(VI). periodt.
And the payoff: she returns the value of the wptr. that's it, that's the return value, iconic behavior π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/amdgpu/tonga_ih.cβ go read the source bestie, it's giving lore π tonga_ih_enable_interrupts(9)tonga_ih_disable_interrupts(9)tonga_ih_irq_init(9)tonga_ih_irq_disable(9)tonga_ih_decode_iv(9)tonga_ih_set_rptr(9)
the whole tonga_ih friend group fr fr, go say hi to all of them π§π
lowkey reminder: this is kernel API stuff, so treat the pointers with respect β no cap, don't be passing her nonsense π
and that's the page!! brought to you by ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and this whole messy little love letter is tonga_ih_get_wptr(9) ππ bye bestie, go read some more manpages, mwah π
π¦ 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