prb_rec_init_wr(9)
β¨ NAME β¨
okay so this is prb_rec_init_wr from the Kernel API Manual (section 9, kernel devs only, iykyk) β and what it does is literally initialize a buffer for writing records π
πΈ SYNOPSIS πΈ
void prb_rec_init_wr (struct printk_record *r , unsigned int
text_buf_size );
that's the whole signature bestie, no cap π«Ά
π ARGUMENTS π
rβ the record you're initializing. yeah. that one. the record. it's getting initialized πtext_buf_sizeβ the needed text buffer size. like, how big your text buffer needs to be. that's the vibe check on your buffer size fr fr β¨
π¦ SEE ALSO π¦
not me dropping the whole friend group of related symbols π go check these out:
- Kernel file
./kernel/printk/printk_ringbuffer.hDEFINE_PRINTKRB(9) prb_rec_init_rd(9)prb_for_each_record(9)prb_for_each_info(9)
like they're all in the same ./kernel/printk friend group, main character energy honestly π
π reminder bestie:prb_rec_init_wris the write side.prb_rec_init_rd(9)is the read side. do not mix them up, that's the whole plot twist π
and that's the page!! π this iconic little moment lives in the ./kernel/printk source, dated October 2026, and it goes by prb_rec_init_wr(9) β slay, periodt, go initialize some records ππ§β
π¦ 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