of_k3_ringac...t_by_phandle(9)
πΈ NAME πΈ
of_k3_ringacc_get_by_phandle β okay so this is the little function that finds you a RA by its phandle property, bestie π
(and yes, this whole page lives in the Kernel API Manual, we're in the kernel docs era now π)
β¨ SYNOPSIS β¨
struct k3_ringacc * of_k3_ringacc_get_by_phandle (struct device_node *np
, const char *property );
Like, that's the whole signature. struct k3_ringacc * in, chaos out, we love to see it π«Ά
π¦ ARGUMENTS π¦
npβ the device node. literally the starting point of the whole quest, no cap πpropertyβ -- undescribed -- π yeah. the docs said nothing. the manpage is giving mysterious main character energy and honestly? we respect the silence π
π DESCRIPTION π
So here's the tea, bestie: this returns a pointer to the RA β like, a struct k3_ringacc β and that's the slay outcome π
But it can also go two other ways:
- it returns
-ENODEVif the RA is not found π - or it returns
-EPROBE_DEFERif it's not yet registered β which is the "not me, not yet, come back later" of error codes β³
Lowkey iconic error-code behaviour honestly π₯
π SEE ALSO π
Kernel file ./include/linux/soc/ti/k3-ringacc.h β go read the source, iykyk π and while you're at it, the whole friend group:
enum k3_ring_mode(9)enum k3_ring_size(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_push_head(9)k3_ringacc_ring_pop_tail(9)
kisses bestie, that's the whole page π sourced straight from the kernel file path ./include/linux/soc/ti, dated October 2026, and yes the page name still looks like of_k3_ringac...t_by_phandle(9) β abbreviated and unbothered, 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