ENUM K3_RING_MODE(9)
π enum k3_ring_mode(9)
okay bestie, welcome to the Kernel API Manual β¨ we're doing the enum k3_ring_mode page today and honestly? it's a whole vibe. it's the mode field of &struct k3_ring_cfg, iykyk π
β¨ NAME β¨
enum k3_ring_mode β literally just the &struct k3_ring_cfg mode. that's the whole name. short king energy π
π¦ SYNOPSIS π¦
enum k3_ring_mode {
K3_RINGACC_RING_MODE_RING ,
K3_RINGACC_RING_MODE_MESSAGE ,
K3_RINGACC_RING_MODE_CREDENTIALS ,
K3_RINGACC_RING_MODE_INVALID
};
no cap, that's the whole enum. four constants, zero drama π
πΈ Constants πΈ
okay so here's the lineup, and each one has its own little personality:
K3_RINGACC_RING_MODE_RINGβ the "exposed Ring" mode, for when SW wants direct access. it's giving main character energy: straight in, no middleman πK3_RINGACC_RING_MODE_MESSAGEβ Messaging mode, and listen, it is strict: every single access to the queue must go through this IP so that all accesses to the memory are controlled and ordered. this IP then controls the entire state of the queue, and SW has no direct control β like, none β such as through doorbells, and it also cannot access the storage memory directly. π why is this useful? because it's particularly useful when more than one SW or HW entity can be the producer and/or consumer at the same time. shared queue chaos? handled. periodt π₯K3_RINGACC_RING_MODE_CREDENTIALSβ Credentials mode is literally message mode plus it stores credentials with each message, which means the element size has to be doubled to fit the credentials. β and heads up: any exposed memory should be protected by a firewall from unwanted access. that's a real warning, bestie, not decoration π«ΆK3_RINGACC_RING_MODE_INVALIDβ-- undescribed --π the manpage literally has nothing for this one. we respect the mystery. π§
π Description π
RA ring operational modes. that's it, that's the description. iconic minimalism π
π SEE ALSO π
go read these next, they're all in the Kernel file ./include/linux/soc/ti/k3-ringacc.h:
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_push_head(9)k3_ringacc_ring_pop_tail(9)
one thing fr fr:K3_RINGACC_RING_MODE_MESSAGEandK3_RINGACC_RING_MODE_CREDENTIALSboth mean SW loses direct control of the queue, and credentials mode doubles your element size. plan accordingly, gorgeous π
and that's the page!! sourced from ./include/linux/soc/ti, dated October 2026, filed under enum k3_ring_mode(9) β mwah, slay, go read your ringacc docs ππ
β¨
π¦ 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