ring_buffer_iter_peek(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ring_buffer_iter_peek(9) β€” peek at the next event to be read πŸ’…

okay so bestie, this page is from the Kernel API Manual, and we're talking about ring_buffer_iter_peek(9). It's giving "look but don't touch" energy, and honestly? Iconic. 🫢

✨ NAME ✨

ring_buffer_iter_peek β€” peek at the next event to be read. Literally just a little look-ahead moment, no cap. πŸ‘€

πŸ”₯ SYNOPSIS πŸ”₯

struct ring_buffer_event * ring_buffer_iter_peek (struct
ring_buffer_iter *iter , u64 *ts );

πŸŽ€ ARGUMENTS πŸŽ€

  • iter β€” the ring buffer iterator. That's the main character here. πŸ’…
  • ts β€” the timestamp counter of this event. πŸ•°οΈ

🌸 DESCRIPTION 🌸

okay so here's the tea: this returns the event that will be read next, but it does not increment the iterator. Not even a little. It's a peek, bestie β€” the iterator stays exactly where it is, periodt. πŸ¦‹

🌈 SEE ALSO 🌈

Kernel file ./kernel/trace/ring_buffer.c, plus all these beautiful little cross-refs:


that's the whole vibe, bestie: source/version ./kernel/trace, dated October 2026, for ring_buffer_iter_peek(9) β€” slay and stay peeking πŸ’–βœ¨

πŸ“¦ where this page comes from