trim_sg_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 says sg 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:


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