seq_buf_commit(9)
β¨ 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β theseq_bufhandle. 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 π
- Kernel file
./include/linux/seq_buf.h struct seq_buf(9)seq_buf_str(9)seq_buf_get_buf(9)seq_buf_pop(9)
xoxo, your Kernel API Manual bestie π β source/version: ./include/linux Β· dated October 2026. 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