seq_buf_commit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ seq_buf_commit(9) ✨

okay so welcome to the Kernel API Manual, bestie 🫢 this page is about committing data to a seq_buf, and yes it's giving very specific but very useful πŸ’…


πŸŽ€ NAME πŸŽ€

seq_buf_commit β€” commit data to the buffer πŸ’–

πŸ“œ SYNOPSIS πŸ“œ

void seq_buf_commit (struct seq_buf *s , int num );

πŸ’… ARGUMENTS πŸ’…

  • s β€” the seq_buf handle. This is the buffer bestie you're working with.
  • num β€” the number of bytes to commit. Slay, that's the count.

πŸ”₯ DESCRIPTION πŸ”₯

So here's the vibe: you're committing num bytes of data written to a buffer that you previously acquired by seq_buf_get_buf. That's it. That's the whole job. ✨

And if you need to signal an error condition, or that the data didn't fit in the available space, pass a negative num value. Negative num is literally the "something went wrong / it didn't fit" move 😭 no cap.

🌈 SEE ALSO 🌈


xoxo, your Kernel API Manual bestie πŸ’– β€” source/version: ./include/linux Β· dated October 2026. periodt 🫢

πŸ“¦ where this page comes from