seq_buf_putmem_hex(9)
π seq_buf_putmem_hex(9) β the Kernel API Manual era π
okay so bestie, welcome to the seq_buf_putmem_hex(9) page β it lives in the Kernel API Manual and honestly it's giving "small function, big main character energy" β¨
πΈ NAME πΈ
seq_buf_putmem_hex β write raw memory into the buffer in ASCII hex π¦
β¨ SYNOPSIS β¨
int seq_buf_putmem_hex (struct seq_buf *s , const void *mem , unsigned
int len );
literally the whole signature, no crumbs left behind π
π ARGUMENTS π
sβ theseq_bufdescriptor, aka the buffer bestie that's holding all your stuff π«Άmemβ the raw memory you want written as its hex ASCII representation, like we're translating it into hex-speak π₯lenβ how long the raw memory you're copying is, in bytes. count them, don't guess ngl π
π DESCRIPTION π
so this one is similar to seq_buf_putmem β except instead of just copying the raw memory straight into the buffer, it writes the ASCII representation of it in hex characters π
that's the whole vibe: same energy as seq_buf_putmem, but make it hex β¨
β RETURN β
- zero on success π
-1on overflow π (the buffer said no ma'am)
π SEE ALSO π
Kernel file ./lib/seq_buf.c β and the whole friend group:
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(9)seq_buf_path(9)seq_buf_to_user(9)seq_buf_hex_dump(9)
fr fr every single one of those is listed, no gatekeeping here π§
and that's the page!! shipped from ./lib, dated October 2026, and it's seq_buf_putmem_hex(9) forever and always ππ
π¦ 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