cc_get_sgl_nents(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cc_get_sgl_nents(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's cc_get_sgl_nents from the cc_get_sgl_nents(9) pages β€” she's a little function with main character energy and she's here to count scatterlist entries for you πŸŽ€


🌸 NAME 🌸

cc_get_sgl_nents β€” get scatterlist number of entries, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int cc_get_sgl_nents (struct device *dev , struct scatterlist
*sg_list , unsigned int nbytes , u32 *lbytes );

like, that's the whole signature, copied exactly, don't come for me 🫢


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the device object πŸ–₯️ literally the thing doing the work
  • sg_list β€” the SG list 🌈
  • nbytes β€” [IN] total SGL data bytes. how many bytes we're talking about, going in ⬅️
  • lbytes β€” [OUT] returns the amount of bytes at the last entry. she comes back out with the tea about that final entry πŸ’Œ

πŸ‘‘ RETURN πŸ‘‘

Number of entries in the scatterlist ⭐ like, the count. the whole point. periodt πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

go read those next, iykyk πŸ“šβœ¨


fr fr bestie, keep the arguments exactly as they are β€” [IN] and [OUT] are doing real work here πŸ™ˆ

that's the whole page, mwah πŸ’‹ this iconic lil number lives at ./drivers/crypto/ccree, dated October 2026, and it's the cc_get_sgl_nents(9) page from the Kernel API Manual β€” slay, you're welcome, bye bestie πŸ¦‹πŸ’œπŸŽ€

πŸ“¦ where this page comes from