prb_next_seq(9)
π prb_next_seq(9) π
okay so this is straight from the Kernel API Manual, bestie β we're talking about prb_next_seq, and it's lowkey iconic for readers who need to know where the next-newest sequence number is at. π¦
β¨ NAME β¨
prb_next_seq β Get the sequence number after the last available record. periodt. π
π SYNOPSIS π
u64 prb_next_seq (struct printk_ringbuffer *rb );
πΈ ARGUMENTS πΈ
rbβ The ringbuffer to get the sequence number from. That's the whole vibe. π«Ά
π¦ DESCRIPTION π¦
This is the public function available to readers to see what the next newest sequence number available to readers will be. Like, it's the function readers are allowed to call for that peek. π
It provides readers a sequence number to jump to if all currently available records should be skipped. And yes bestie, it is guaranteed that all records previous to the returned value have been finalized and are (or were) available to the reader. no cap. β
π CONTEXT π
Any context. literally any. π
β RETURN β
The sequence number of the next newest (not yet available) record for readers. that's the whole return vibe. β¨
π SEE ALSO π
- Kernel file
./kernel/printk/printk_ringbuffer.cprintk_ringbuffer overview(9)β go read the overview, iykyk. π prb_reserve_in_last(9)prb_reserve(9)prb_commit(9)prb_final_commit(9)prb_next_reserve_seq(9)prb_read_valid(9)prb_read_valid_info(9)prb_first_valid_seq(9)prb_init(9)prb_record_text_space(9)
cute sign-off bestie: source/version is ./kernel/printk, date is October 2026, and the page is prb_next_seq(9). stay slay, keep your ringbuffer close, and read the docs πππ¦
π¦ 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