ring_buffer_nr_dirty_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ring_buffer_nr_dirty_pages(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual. This page is about ring_buffer_nr_dirty_pages, and it is literally the β€œhow many pages are actually doing something” girlie. iconic behavior. ✨

πŸŽ€ NAME πŸŽ€

ring_buffer_nr_dirty_pages β€” get the number of used pages in the ring buffer. periodt. πŸ’…

✨ SYNOPSIS ✨

size_t ring_buffer_nr_dirty_pages (struct trace_buffer *buffer , int cpu
);

🫢 ARGUMENTS 🫢

  • buffer β€” the <purple>ring_buffer</purple> you want the number of pages from. This is the main character of the call, ngl.
  • cpu β€” the cpu of the ring_buffer you want the number of pages from. yes bestie, you gotta say which cpu’s ring buffer you’re asking about. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

It returns the number of pages that have content in the ring buffer. That’s it, that’s the whole flex. No cap, no extra lore: pages with content get counted. ✨

🌈 SEE ALSO 🌈

kernel file: ./kernel/trace/ring_buffer.c β€” the source, iykyk. 🫢

go read these next, bestie:


that’s the whole page, bestie 🫢 source/version vibe: ./kernel/trace, date: October 2026, and the star of the show is ring_buffer_nr_dirty_pages(9). mwah πŸ’‹

πŸ“¦ where this page comes from