seq_buf_path(9)
π
seq_buf_path β like, the seq_buf_path(9) page, bestie β¨
okay so this one's from the Kernel API Manual, and it's honestly kinda iconic for how much it does with so little. sit down, grab a strawberry π, we're copying a path into a sequence buffer and it's gonna slay.
πΈ NAME πΈ
seq_buf_path β copy a path into the sequence buffer. that's it, that's the vibe. π«Ά
β¨ SYNOPSIS β¨
int seq_buf_path (struct seq_buf *s , const struct path *path , const char *esc );
π ARGUMENTS π
sβ the seq_buf descriptor, aka the lil buffer bestie we're writing into πpathβ the path we're writing into the sequence buffer. yes, that path. the main character πescβ the set of characters to escape in the output. pick your fighters carefully π₯
π¦ DESCRIPTION π¦
Write a path name into the sequence buffer. literally that's the whole thing β no cap, no hidden lore, it just puts the path in there. β¨
π RETURN π
the number of written bytes on success π, or -1 on overflow π (yeah, if it doesn't fit, it's giving overflow and you get the -1, so plan accordingly fr fr).
π₯ SEE ALSO π₯
Kernel file ./lib/seq_buf.c, plus the whole seq_buf friend group, all of them, no one left behind:
seq_buf_can_fit(9)seq_buf_print_seq(9)seq_buf_vprintf(9)seq_buf_printf(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_to_user(9)seq_buf_hex_dump(9)
ngl the seq_buf girlies really did that with an entire ecosystem of functions. iykyk π
okay bye bestie, this page lives in ./lib and it's stamped October 2026 β β go write some paths, you're gonna eat ππ§π
π¦ 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