cc_get_sgl_nents(9)
β¨ 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 worksg_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 π₯
- Kernel file
./drivers/crypto/ccree/cc_buffer_mgr.c cc_copy_mac(9)cc_copy_sg_portion(9)
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
- 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