tonga_ih_get_wptr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” an amdgpu_device pointer. 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 🌈

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