sg_alloc_table_chained(9)
πΈ NAME πΈ
okay so this is sg_alloc_table_chained(9) from the Kernel API Manual, and it's literally the page for βAllocate and chain SGLs in an sg tableβ π
β¨ That's the whole vibe: allocate, chain, slay.
β¨ SYNOPSIS β¨
the signature is right here, bestie β copy it exactly, no editorializing:
int sg_alloc_table_chained (struct sg_table *table , int nents , struct
scatterlist *first_chunk , unsigned nents_first_chunk );
π ARGUMENTS π
tableβ the sg table header to use. that's your main-character struct, fr fr π«Άnentsβ number of entries in the sg list. yes bestie, count them πfirst_chunkβ the first SGL. like, the first one first πnents_first_chunkβ number of the SGL offirst_chunk. okay so it's the count for that first chunk, got it π
π¦ DESCRIPTION π¦
so this function allocates and chains SGLs in an sg table β¨ If nents is larger than nents_first_chunk, a chained sg table will be setup. that's the tea β
also important: first_chunk is ignored if nents_first_chunk <= 1, because user expects the SGL points non-chain SGL π«‘ no cap, that's the rule.
π₯ SEE ALSO π₯
- Kernel file
./lib/sg_pool.cπ sg_free_table_chained(9)β the friend in the same little kernel-file friend group π
mwah π cute little sign-off: this page came from source/version ./lib, dated October 2026, and it's the sg_alloc_table_chained(9) page. 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