nx_build_sg_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 buffer
  • len β€” length of the data at start_addr
  • sgmax β€” 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