seq_buf_pop(9)
π seq_buf_pop β like, the Kernel API Manual page you actually wanna read β¨
okay bestie, welcome to the Kernel API Manual entry for seq_buf_pop, and trust me, this one is short, sweet, and honestly kind of iconic π
β¨ NAME β¨
seq_buf_pop β pop off the last written character π
πΈ SYNOPSIS πΈ
int seq_buf_pop (struct seq_buf *s );
π¦ ARGUMENTS π¦
sβ theseq_bufhandle π like, the actual buffer you're messing with, no cap
π DESCRIPTION π
Removes the last written character from the seq_buf s. that's it. that's the whole job. she takes the last character you wrote and she pops it right off π
and then β Returns the last character or -1 if it is empty π so yeah, if your buffer's got nothing in it, you get -1 back, which is lowkey the saddest little return value ever ngl
fr fr: empty buffer β -1. not empty β you get the character that got popped. no guessing, that's literally what the manpage says π«Ά
π SEE ALSO π
- Kernel file
./include/linux/seq_buf.hβ the header where all the seq_buf besties live π§ struct seq_buf(9)β the struct itself, main character energy βseq_buf_str(9)β go read this one too, iykykseq_buf_get_buf(9)β also a vibeseq_buf_commit(9)β and this one, slay π₯
and that's the whole page, bestie π before you go: this masterpiece lives in the source dir ./include/linux, dated October 2026, and it's brought to you by the Kernel API Manual β periodt π
β¨π
π¦ 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