seq_buf_putmem_hex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the seq_buf descriptor, 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 πŸŽ‰
  • -1 on overflow 😭 (the buffer said no ma'am)

🌈 SEE ALSO 🌈

Kernel file ./lib/seq_buf.c β€” and the whole friend group:


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