k3_ringacc_ring_push_head(9)
π k3_ringacc_ring_push_head(9) β the Kernel API Manual era π
okay bestie, we're in section 9 of the Kernel API Manual and today's main character is k3_ringacc_ring_push_head β¨ lowkey a whole legend.
πΈ NAME πΈ
k3_ringacc_ring_push_head β literally just pushes an element to the ring head, that's the whole vibe π
π¦ SYNOPSIS π¦
int k3_ringacc_ring_push_head (struct k3_ring *ring , void *elem );
π ARGUMENTS π
ringβ pointer on ring, that's your ring pointer bestie π«Άelemβ pointer on ring element buffer, the actual thing you're yeeting in there π
β¨ DESCRIPTION β¨
So here's the tea β: this function pushes one ring element to the ring head. And the size of that ring element? Not vibes-based, ngl β it's determined by the ring configuration struct k3_ring_cfg field elm_size π
It returns 0 on success, or errno otherwise π. And the big heads-up: it is Not Supported by ring modes K3_RINGACC_RING_MODE_RING β like, it's giving unsupported, so don't come for it π
π₯ SEE ALSO π₯
Kernel file ./include/linux/soc/ti/k3-ringacc.h and honestly the whole friend group:
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_get_occ(9)k3_ringacc_ring_is_full(9)k3_ringacc_ring_push(9)k3_ringacc_ring_pop(9)k3_ringacc_ring_pop_tail(9)
aaand that's the page π§π this iconic little number lives in ./include/linux/soc/ti, dated October 2026, and it's filed under k3_ringacc_ring_push_head(9) β 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