trim_sg_list(9)
β¨ NAME β¨
okay so we're deep in the Kernel API Manual and today's page is trim_sg_list(9) π. The function is trim_sg_list β ensures the bound in sg list. That's the vibe, that's the job, periodt π.
πΈ SYNOPSIS πΈ
long int trim_sg_list (struct nx_sg *sg , struct nx_sg *end , unsigned
int delta , unsigned int *nbytes );
π ARGUMENTS π
sgβ sg list head. It's literally the head of the sg list, main character energy π.endβsg lisg end. Yes bestie, the page sayssg lisg end, and we are preserving that spelling exactly, no cap π.deltaβ is the amount we need to crop in order to bound the list. This is the crop amount, the little trim that keeps the list bounded βοΈ.nbytesβ length of data in the scatterlists or data length - whichever is greater. Keep that comparison in mind: whichever is greater, bestie π«Ά.
π¦ SEE ALSO π¦
Kernel file ./drivers/crypto/nx/nx.c has the whole friend group:
nx_hcall_sync(9)nx_build_sg_list(9)nx_walk_and_build(9)nx_build_sg_lists(9)nx_ctx_init(9)nx_of_init(9)nx_register_algs(9)nx_crypto_ctx_init(9)nx_crypto_ctx_exit(9)
mwah π this cutie lives in ./drivers/crypto/nx, dated October 2026, and it's literally trim_sg_list(9) in the Kernel API Manual π.
π¦ 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