seq_buf_putmem(9)
πΎ NAME πΎ
okay bestie, welcome to the Kernel API Manual page for seq_buf_putmem(9) β literally the function that lets you write raw data into the sequence buffer. No cap.
seq_buf_putmem - write raw data into the sequence buffer
π SYNOPSIS π
int seq_buf_putmem (struct seq_buf *s , const void *mem , unsigned int
len );
π ARGUMENTS π
sβ theseq_bufdescriptor, aka the buffer's main-character passport πmemβ the raw memory you're copying into the buffer π«Άlenβ the length of that raw memory you're copying, in bytes, exactly β¨
π DESCRIPTION π
okay so sometimes you've got raw memory that needs to be written into the buffer, and strcpy is simply not gonna work for that. Not the vibe. Using this function is literally how you handle those cases. That's the whole reason it exists, bestie π¦
π RETURN π
0 on success, -1 on overflow. That's it, that's the tea β
π SEE ALSO π
Kernel file ./lib/seq_buf.c β plus these iconic little references, iykyk:
seq_buf_can_fit(9)seq_buf_print_seq(9)seq_buf_vprintf(9)seq_buf_printf(9)seq_buf_do_printk(9)seq_buf_bprintf(9)seq_buf_puts(9)seq_buf_putc(9)seq_buf_putmem_hex(9)seq_buf_path(9)seq_buf_to_user(9)seq_buf_hex_dump(9)
source/version: ./lib Β· date: October 2026 Β· page: seq_buf_putmem(9) β stay slay, bestie, and may your buffers never overflow πππ«Ά
π¦ 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