seq_buf_putmem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ 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 β€” the seq_buf descriptor, 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:


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