sg_pcopy_from_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« sg_pcopy_from_buffer β€” like, the kernel API manual, bestie πŸ’«

okay so this is sg_pcopy_from_buffer(9) from the Kernel API Manual, and honestly? it's giving "small function, big job" energy. no cap. let's get into it 🫢


✨ NAME ✨

sg_pcopy_from_buffer β€” copies stuff from a linear buffer over to an SG list. that's it. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

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

literal chef's kiss signature, no notes πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sgl β€” the SG list itself. the main character of this whole operation πŸ‘‘
  • nents β€” how many SG entries there are in the list, fr fr
  • buf β€” where you're copying from. the source, the origin story ✨
  • buflen β€” the number of bytes to copy. be honest about this one bestie
  • skip β€” number of bytes to skip before copying even starts. like scrolling past the intro πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

so it returns the number of copied bytes. that's the description. it's short, it's sweet, it ate and left no crumbs πŸ’€βœ¨


🧚 SEE ALSO 🧚

kernel file ./lib/scatterlist.c β€” and like, the entire scatterlist friend group, lowkey iconic of them to all show up together 🌈

like, that's the whole squad. go say hi to all of them 🫢


okay that's the page!! it lives in ./lib, dated October 2026 β€” so like, future vibes fr fr ⭐ mwah, go copy some bytes bestie, you're gonna slay πŸ’œπŸ’…

πŸ“¦ where this page comes from