prb_for_each_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ prb_for_each_info(9) ✨

okay bestie, this is the Kernel API Manual page for prb_for_each_info, and it's lowkey giving β€œiterate over ringbuffer meta data” main character energy. πŸ’…

🌸 NAME 🌸

prb_for_each_info β€” iterate over the meta data of a ringbuffer. iconique. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

prb_for_each_info (from , rb , s , i , lc );

πŸ’– ARGUMENTS πŸ’–

  • from β€” the sequence number to begin with. your starting point, bestie. ✨
  • rb β€” the ringbuffer to iterate over.
  • s β€” a u64 to store the sequence number on each iteration.
  • i β€” a printk_info to store the record meta data on each iteration.
  • lc β€” an unsigned int to store the text line count of each record.

🌈 DESCRIPTION 🌈

This is a macro for conveniently iterating over a ringbuffer. no cap, that's the whole vibe. 🫢

heads up bestie: s may not be the sequence number of the record on each iteration. for the sequence number, i->seq should be checked. πŸ‘€πŸ’…

πŸ‘‘ CONTEXT πŸ‘‘

Any context. literally any context, she's flexible. πŸ’œ

⭐ SEE ALSO ⭐

Kernel file ./kernel/printk/printk_ringbuffer.h: DEFINE_PRINTKRB(9), prb_rec_init_wr(9), prb_rec_init_rd(9), prb_for_each_record(9).


kisses, the footer deets are: source/version line ./kernel/printk, date October 2026, page prb_for_each_info(9). πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from