ring_buffer_read_events_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hey bestie πŸ’– β€” welcome to ring_buffer_read_events_cpu(9) from the Kernel API Manual. It’s a tiny page with big β€œI count events” energy, and we’re keeping every fact exactly where it belongs.

🌸 NAME 🌸

ring_buffer_read_events_cpu β€” get the number of events successfully read. That’s the whole assignment, bestie: literally the number of events that were successfully read, no extra plot twist.

✨ SYNOPSIS ✨

okay so the signature is giving β€œone function, two args, zero drama”:

unsigned long ring_buffer_read_events_cpu (struct trace_buffer *buffer ,
int cpu );

πŸ’… ARGUMENTS πŸ’…

  • buffer β€” the ring buffer. Yes, the actual ring buffer, main character.
  • cpu β€” the per CPU buffer to get the number of events read. iykyk, per-CPU accounting.

πŸ¦‹ SEE ALSO πŸ¦‹

okay the cross-reference section is huge β€” like a group chat with every ring-buffer bestie in it πŸ’€ β€” but every single one is here:

mwah πŸ’‹ β€” source/version check: ./kernel/trace, date: October 2026, page: ring_buffer_read_events_cpu(9). periodt 🫢

πŸ“¦ where this page comes from