af_alg_count_tsgl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… af_alg_count_tsgl(9)

okay so bestie, welcome to the Kernel API Manual β€” we're literally in af_alg_count_tsgl(9) territory and it's giving "tiny function, big responsibility" energy. This one's whole thing? Counting TX SG entries. that's it. that's the vibe. ✨


🌸 NAME 🌸

af_alg_count_tsgl β€” Count number of TX SG entries

like, it counts SG entries. TX ones. for real. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int af_alg_count_tsgl (struct sock *sk , size_t bytes );

that's literally the whole signature, no cap πŸ’…


✨ ARGUMENTS ✨

  • sk β€” the socket of the connection to user space. bestie's channel to the outside world 🫢
  • bytes β€” count the number of SG entries holding the given number of bytes. you tell it how many bytes, it tells you how many entries are holding them πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

the counting starts from the beginning of the SGL and runs up to bytes. that's it. that's the whole journey: from the top of the scatterlist, all the way to your bytes cutoff. slay πŸ’€


⭐ RETURN ⭐

number of TX SG entries found, given the constraints. a plain unsigned int, no drama, no error codes, just a count πŸ˜­πŸ‘‘


🌈 SEE ALSO 🌈

the whole af_alg friend group, honestly β€” go read them all, iykyk πŸ§šπŸ’œ


ok that's the page!! tiny but iconic. go count some SG entries bestie, you got this πŸ“

made its home in ./crypto, dated October 2026, and it's filed under af_alg_count_tsgl(9) in the Kernel API Manual β€” mwah, periodt πŸ’–βœ¨

πŸ“¦ where this page comes from