prb_for_each_info(9)
β¨ 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β au64to store the sequence number on each iteration.iβ aprintk_infoto store the record meta data on each iteration.lcβ anunsigned intto 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:smay not be the sequence number of the record on each iteration. for the sequence number,i->seqshould 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
- 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