seq_buf_pop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the seq_buf handle πŸ’– 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, iykyk
  • seq_buf_get_buf(9) β€” also a vibe
  • seq_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