ring_buffer_...uf_order_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ring_buffer_subbuf_order_set(9)

okay so this little icon is from the Kernel API Manual, and bestie, it's literally about resizing ring buffer pages. tiny function, big vibes. let's get into it 🫢


✨ NAME ✨

ring_buffer_subbuf_order_set β€” set the size of ring buffer sub page. no cap, that's the whole job πŸ’–


🌸 SYNOPSIS 🌸

int ring_buffer_subbuf_order_set (struct trace_buffer *buffer , int order );

πŸŽ€ ARGUMENTS πŸŽ€

  • buffer β€” the ring_buffer you're giving a whole new page size to. main character energy, honestly πŸ‘‘
  • order β€” the order of the system pages that fit inside one sub buffer page. this is the number that does the actual slaying πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so by default, one ring buffer page = one system page. that's the standard. that's the baseline. that's the pre-glow-up era πŸ’€

this API lets you set a new size for the ring buffer page, and the size has to be an order of the system page size β€” that's literally why the input parameter is called order: it's the order of system pages that get allocated for one ring buffer page. like so:

  • 0 β€” 1 system page
  • 1 β€” 2 system pages
  • 3 β€” 4 system pages

...and so on, iykyk 🌈

it Returns 0 on success, or < 0 in case of an error. so like, zero means slay, negative means we're not okay 😭


⭐ SEE ALSO ⭐

the whole friend group, fr fr β€” and also the kernel file ./kernel/trace/ring_buffer.c:


bestie this page is from ./kernel/trace, dated October 2026 β€” that's the source/version and the date, and yes i'm mentioning them because the footer said so πŸ’œ

that's the whole page!! go forth and resize ur sub pages responsibly, ily πŸ§šβœ¨πŸŽ€

πŸ“¦ where this page comes from