sg_init_table(9)
π NAME π
sg_init_table β Initialize SG table
okay bestie, welcome to sg_init_table(9) from the Kernel API Manual β¨ this is the page where we initialize an SG table, and itβs giving kernel-core main character energy, no cap π
πΈ SYNOPSIS πΈ
void sg_init_table (struct scatterlist *sgl , unsigned int nents );
π ARGUMENTS π
sglβ The SG table. literally the table itself, bestie π«Άnentsβ Number of entries in table. yes maβam, the count of entries, fr fr β¨
π¨ NOTES π¨
okay important note, bestie: If this is part of a chained sg table, sg_mark_end should be used only on the last table part. so likeβ¦ only the last table part gets that treatment, periodt π
π SEE ALSO π
Kernel file ./lib/scatterlist.c β thatβs the spot, iykyk π¦
sg_nents(9)sg_nents_for_len(9)sg_nents_for_dma(9)sg_last(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_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)
mwah π this lil page lives in ./lib, dated October 2026, and itβs literally sg_init_table(9), okurrr? π«Άβ¨
π¦ 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