k3_ringacc_ring_get_occ(9)
π k3_ringacc_ring_get_occ(9) π
okay bestie, welcome to the Kernel API Manual β¨ β yes it's a whole manual, yes it's just about rings, no I will not be normal about it π
πΈ NAME πΈ
k3_ringacc_ring_get_occ β get ring occupancy π
Literally what it says on the tin: you wanna know how occupied your ring is? This is the function. Main character energy fr π
β¨ SYNOPSIS β¨
u32 k3_ringacc_ring_get_occ (struct k3_ring *ring );
That's the whole vibe. It gives you back a u32 and it takes one thing. Iconic, minimal, no notes π«Ά
π ARGUMENTS π
ringβ pointer on ring. that's it, that's the whole arg π¦ hand it astruct k3_ring *and it's off to the races.
π DESCRIPTION π
Returns total number of valid entries on the ring.
bestie that's the entire description and honestly? it ate. it devoured. no crumbs left π you pass the ring, you get the count of valid entries currently chillin' on it. that's the whole function. periodt π
ngl, this page is short and it's giving "I said what I said" β no extra params, no flags, no environment variables, no exit statuses, no hidden gotchas. what you see is what you get β¨
π¦ SEE ALSO π¦
okay so the whole friend group is here, and they're all in the Kernel file ./include/linux/soc/ti/k3-ringacc.h:
enum k3_ring_mode(9)enum k3_ring_size(9)of_k3_ringacc_get_by_phandle(9)k3_ringacc_request_ring(9)k3_ringacc_ring_reset(9)k3_ringacc_ring_free(9)k3_ringacc_get_ring_id(9)k3_ringacc_get_ring_irq_num(9)k3_ringacc_ring_cfg(9)k3_ringacc_ring_get_size(9)k3_ringacc_ring_get_free(9)k3_ringacc_ring_is_full(9)k3_ringacc_ring_push(9)k3_ringacc_ring_pop(9)k3_ringacc_ring_push_head(9)k3_ringacc_ring_pop_tail(9)
like, the entire ringacc extended universe π go read them, they're all right there, iykyk.
π cute lil sign-off π this masterpiece lives in ./include/linux/soc/ti and it's stamped October 2026 β if you need me, I'll be here counting entries. bye bestie, slay ur ring π§πΈ
π¦ 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