STRUCT RING_BUF_MANAGER(9)
π struct ring_buf_manager(9) π
okay so this is from the Kernel API Manual, section 9 (kernel API, bestie, iykyk) β and it's literally just a helper structure that manages a ring buffer π
β¨ NAME β¨
struct ring_buf_manager β the helper structure whose whole job is managing a ring buffer π no cap
πΈ SYNOPSIS πΈ
struct ring_buf_manager {
struct mutex mutex;
void *ring_start;
u32 ring_size;
phys_addr_t ring_pa;
u32 wptr;
};
likeβ¦ look at her. five fields. main character energy π
π¦ Members π¦
ring_startβ the starting address of the ring buffer. that's where it all begins, fr fr β¨ring_sizeβ how big the ring buffer is, measured in bytes (yes, bytes, not vibes) πring_paβ the physical address of the ring buffer. physical, not virtual β important distinction, don't @ me πwptrβ the index pointing to the last written entry in the ring buffer βοΈ so you always know where the writing left off
ngl the struct also has amutexin there (struct mutex mutex;), it just doesn't get its own little member blurb in this list. i'm not gonna make one up for it because that would be lying and lying is not slay π
π«Ά SEE ALSO π«Ά
- the kernel file
./drivers/crypto/ccp/tee-dev.hπ struct tee_init_ring_cmd(9)enum tee_cmd_state(9)enum cmd_resp_state(9)struct tee_ring_cmd(9)
like a little friend group of crypto/ccp structures and enums π§ go read them too, they ate π
and that's the whole page, bestie β sourced from ./drivers/crypto/ccp, dated October 2026, still titled struct ring_buf_manager(9) because we respect the classics π mwah π
π¦ 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