sg_init_one(9)
π« sg_init_one(9) π«
okay so bestie, welcome to the Kernel API Manual entry for sg_init_one β it's literally the glow-up ritual for a single scatterlist entry, no cap β¨
πΈ NAME πΈ
sg_init_one β initialize a single entry sg list π
like, one entry. singular. the main character of scatterlists π
β¨ SYNOPSIS β¨
void sg_init_one (struct scatterlist *sg , const void *buf , unsigned
int buflen );
it returns void, meaning it gives you nothing back but vibes and a properly set-up sg entry π«Ά
π¦ ARGUMENTS π¦
sgβ the SG entry itself, bestie. this is the thing you're initializing πbufβ the virtual address for IO π₯ that's where the data livesbuflenβ the IO length πΈ how much we're working with, anunsigned int
π SEE ALSO π
the kernel file ./lib/scatterlist.c is where all the lore lives, and here's the whole friend group β every single one, no gatekeeping π
sg_nents(9)sg_nents_for_len(9)sg_nents_for_dma(9)sg_last(9)sg_init_table(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_from_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)
ngl bestie, sg_init_one is giving "small but iconic" β one entry, one job, and it ate π
alright that's the whole page!! this one lives under ./lib and the version stamp says October 2026 β go forth and initialize that single sg entry, you've got this fr fr π§ππ
π¦ 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