__ring_buffer_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __ring_buffer_alloc(9) πŸ’– β€” Kernel API Manual

🌸 NAME 🌸

__ring_buffer_alloc β€” allocate a new ring_buffer ✨

✨ SYNOPSIS ✨

struct trace_buffer * __ring_buffer_alloc (unsigned long size , unsigned
flags , struct lock_class_key *key );

πŸŽ€ ARGUMENTS πŸŽ€

  • size β€” the size in bytes per cpu that is needed. πŸ’–
  • flags β€” attributes to set for the ring buffer. πŸŽ€
  • key β€” ring buffer reader_lock_key. πŸ”‘

πŸ’… DESCRIPTION πŸ’…

okay so currently the only flag that is available is the RB_FL_OVERWRITE flag. bestie, this flag means that the buffer will overwrite old data when the buffer wraps. if this flag is not set, the buffer will drop data when the tail hits the head. no cap πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./kernel/trace/ring_buffer.c β€” plus the whole bestie entourage:

okay that's the whole page β€” source/version: ./kernel/trace, date: October 2026, page: __ring_buffer_alloc(9) πŸ’‹

πŸ“¦ where this page comes from