sg_copy_from_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

sg_copy_from_buffer(9) 🫢

okay bestie, welcome to the Kernel API Manual β€” we're talking about sg_copy_from_buffer(9), and yes this is the scatterlist-copying one. main character energy fr fr πŸ’…


✨ NAME ✨

sg_copy_from_buffer β€” copy from a linear buffer to an SG list.

like, literally: linear buffer in, SG list out. slay.


🌸 SYNOPSIS 🌸

size_t sg_copy_from_buffer (struct scatterlist *sgl , unsigned int nents
, const void *buf , size_t buflen );

πŸŽ€ ARGUMENTS πŸŽ€

  • sgl β€” the SG list. that's the scatterlist bestie in question πŸ¦‹
  • nents β€” number of SG entries.
  • buf β€” where to copy from.
  • buflen β€” the number of bytes to copy.

πŸ’– DESCRIPTION πŸ’–

Returns the number of copied bytes. that's the whole vibe β€” it hands you back the byte count, no cap πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./lib/scatterlist.c β€” and the whole squad is here, bestie:


kisses bestie πŸ“ this page came from ./lib, dated October 2026, and it's still signing off as sg_copy_from_buffer(9) β€” periodt πŸ’œ

πŸ“¦ where this page comes from