simple_ring_buffer_reset(9)
β¨ simple_ring_buffer_reset β¨
okay so this is a kernel API manual page, bestie β simple_ring_buffer_reset(9), straight outta the Kernel API Manual. yes, section 9. we're in the big leagues now π«Ά
πΈ NAME πΈ
simple_ring_buffer_reset β reset @cpu_buffer π
π¦ SYNOPSIS π¦
int simple_ring_buffer_reset (struct simple_rb_per_cpu *cpu_buffer );
π ARGUMENTS π
cpu_bufferβ asimple_rb_per_cpu. that's it. that's the whole vibe check. it's the thing you're resetting β¨
π DESCRIPTION π
okay so listen, this one is lowkey important so don't skip it:
this will not clear the content of the data. it only resets counters and pointers. like, the actual data? still there. untouched. the counters and pointers? freshly reset. not me being dramatic, that's just literally what it does π
so if you were expecting a full wipe, bestie, no. not today. counters and pointers get the reset treatment, the data itself stays exactly where it is. iykyk π§
π RETURN VALUE π
(she's folded into the description in the original, but we're giving her her own moment, periodt)
- Returns
0on success π - Returns
-ENODEVifcpu_bufferwas unloaded π
β SEE ALSO β
- Kernel file
./kernel/trace/simple_ring_buffer.cβ go read the source, bestie, it's giving main character energy π simple_ring_buffer_swap_reader_page(9)simple_ring_buffer_reserve(9)simple_ring_buffer_commit(9)simple_ring_buffer_init(9)simple_ring_buffer_unload(9)simple_ring_buffer_enable_tracing(9)
the whole squad π«Ά go say hi to all of them.
and that's the page!! π this lil beauty comes to you from ./kernel/trace, dropped in October 2026 β mwah, slay, no cap, see u in the source tree πβ¨
π¦ 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