spu_sg_at_offset(9)
π NAME π
okay so bestie, welcome to spu_sg_at_offset(9) from the Kernel API Manual π this one is lowkey a scatterlist detective: it finds the scatterlist entry at a given distance from the start of a scatterlist. no cap.
β¨ SYNOPSIS β¨
int spu_sg_at_offset (struct scatterlist *sg , unsigned int skip ,
struct scatterlist **sge , unsigned int *sge_offset );
πΈ ARGUMENTS πΈ
sg[in]β start of a scatterlist. this is the homie you're searching through π«Άskip[in]β distance from the start of the scatterlist, in bytes. like how far into the vibe you're looking πsge[out]β scatterlist entry atskipbytes from start. the result goes here β¨sge_offset[out]β number of bytes from start ofsgebuffer to get to requested distance. basically the tiny offset receipt π§Ύ
π RETURN π
0 if entry found at requested distance; < 0 otherwise. that's it, that's the whole mood π
π₯ SEE ALSO π₯
- Kernel file
./drivers/crypto/bcm/util.c spu_sg_count(9)spu_msg_sg_add(9)do_shash(9)format_value_ccm(9)
mwah π source/version: ./drivers/crypto/bcm, dated October 2026. periodt π
π¦ 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