seq_buf_printf(9)
okay bestie, welcome to the Kernel API Manual π
this little page is about seq_buf_printf(9), and honestly it's giving "short and sweet, does exactly what it says." no cap. let's get into it β¨
πΈ NAME πΈ
seq_buf_printf β sequence printing of information π
like, that's the whole tagline. it prints info into a sequence buffer. iconic behaviour, zero notes.
β¨ SYNOPSIS β¨
int seq_buf_printf (struct seq_buf *s , const char *fmt , ... );
that's the whole signature, bestie. five tokens and a dream π«Ά
π¦ ARGUMENTS π¦
sβ theseq_bufdescriptor π this is your buffer, your main character, the thing getting written into.fmtβ the printf format string π you know this one, you've met it before, it'sprintfformat energy....β the variable arguments π the lil extra squad that gets matched up against whatever's insidefmt. iykyk.
π DESCRIPTION π
so what does it actually do? it writes a printf format into the sequence buffer. that's it. that's the lore. β
seq_buf_printf takes your fmt plus all the ... arguments that go with it and writes the formatted result into the sequence buffer s described by the struct seq_buf *s you passed in. simple, clean, slay. π
π₯ RETURN π₯
0(zero) on success β¨ we love a win.-1on overflow π the buffer couldn't hold it, that's the vibe check failed.
no in-between, no "maybe," no "it depends." zero or minus one. periodt.
π§ SEE ALSO π§
the kernel file lives at ./lib/seq_buf.c btw π and here's the whole friend group of related calls β go say hi to all of them, they're all in the same little seq_buf family π«Ά:
seq_buf_can_fit(9)seq_buf_print_seq(9)seq_buf_vprintf(9)seq_buf_do_printk(9)seq_buf_bprintf(9)seq_buf_puts(9)seq_buf_putc(9)seq_buf_putmem(9)seq_buf_putmem_hex(9)seq_buf_path(9)seq_buf_to_user(9)seq_buf_hex_dump(9)
aaaand that's the page!! π¦ before you go β cute lil sign-off time: this one comes from the ./lib corner of the tree πΈ, dated October 2026 π, and it's filed under seq_buf_printf(9) in case you need to find it again later. mwah, go write some buffers bestie π
π¦ 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