sg_copy_from_buffer(9)
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:
sg_nents(9)sg_nents_for_len(9)sg_nents_for_dma(9)sg_last(9)sg_init_table(9)sg_init_one(9)__sg_free_table(9)sg_free_append_table(9)sg_free_table(9)__sg_alloc_table(9)sg_alloc_table(9)sg_alloc_append_table_from_pages(9)sg_alloc_table_from_pages_segment(9)sgl_alloc_order(9)sgl_alloc(9)sgl_free_n_order(9)sgl_free_order(9)sgl_free(9)sg_miter_start(9)sg_miter_skip(9)sg_miter_next(9)sg_miter_stop(9)sg_copy_buffer(9)sg_copy_to_buffer(9)sg_pcopy_from_buffer(9)sg_pcopy_to_buffer(9)sg_zero_buffer(9)extract_iter_to_sg(9)
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
- 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