nx_build_sg_list(9)
π nx_build_sg_list(9) π
okay so welcome to the Kernel API Manual page for nx_build_sg_list(9) β yes bestie, we're building an NX scatter list that describes a single buffer. Slay. β¨
πΈ NAME πΈ
nx_build_sg_list β build an NX scatter list describing a single buffer. Periodt. π
β¨ SYNOPSIS β¨
struct nx_sg * nx_build_sg_list (struct nx_sg *sg_head , u8 *start_addr
, unsigned int *len , u32 sgmax );
π ARGUMENTS π
sg_headβ pointer to the first scatter list element to build (the starting point, the main character of this build π )start_addrβ pointer to the linear bufferlenβ length of the data atstart_addrsgmaxβ the largest number of scatter list elements we're allowed to create (the limit, okay? respect it β¨)
π DESCRIPTION π
This function will start writing nx_sg elements at sg_head and keep writing them until all of the data from start_addr is described or until sgmax elements have been written. No cap. π«Ά
Scatter list elements will be created such that none of the elements describes a buffer that crosses a 4K boundary. That's the vibe: every element stays on the right side of that 4K line, lowkey crucial π§.
π SEE ALSO π
Kernel file ./drivers/crypto/nx/nx.c, plus the besties: nx_hcall_sync(9), nx_walk_and_build(9), trim_sg_list(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).
byeeee π footer vibes: source/version ./drivers/crypto/nx, date October 2026, page nx_build_sg_list(9) β mwah π
π¦ 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