seq_buf_get_buf(9)
π seq_buf_get_buf(9) β the kernel API manual, but make it make sense
okay bestie, so this whole page is about seq_buf_get_buf, which lives in the Kernel API Manual β¨ β and yes it's a function signature with <italic>9</italic> at the end, that's just how man pages flex. Anyway. It's giving "hand me a buffer so I can write literally whatever I want into it" energy, and honestly? Iconic.
π NAME π
seq_buf_get_buf β get buffer to write arbitrary data to π«Ά
Like, that's the whole vibe. You get a buffer. You write arbitrary data to it. No cap.
β¨ SYNOPSIS β¨
size_t seq_buf_get_buf (struct seq_buf *s , char **bufp );
that's it, that's the whole thing. copy it exactly, don't be weird about the spacing π
πΈ ARGUMENTS πΈ
sβ theseq_bufhandle. the main character of this story πbufpβ the beginning of the buffer is stored here. that's where the pointer gets dropped off, like a little gift π
β RETURN β
it returns the number of bytes available in the buffer π§ β or zero if there's no space. and yes, zero means what you think it means: no room, no slay, nothing to write into π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/seq_buf.h struct seq_buf(9)seq_buf_str(9)seq_buf_commit(9)seq_buf_pop(9)
go read those too, iykyk π
and that's the page!! tiny, but it ate. π
this came out of ./include/linux and it's dated October 2026 β so like, mark your calendar bestie, or honestly don't, it's a man page footer and it's not that deep πβ
π¦ 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