STRUCT RING_BUF_MANAGER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a mutex in 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