STRUCT TEST_SG_DIVISION(9)
π struct test_sg_division(9) π
okay so this is a page from the Kernel API Manual, and it's all about struct test_sg_division β literally just a description of a scatterlist entry. bestie, that's it, that's the whole vibe β¨
πΈ SYNOPSIS πΈ
like, here's the shape of it, no cap:
struct test_sg_division {
unsigned int proportion_of_total;
unsigned int offset;
bool offset_relative_to_alignmask;
enum flush_type flush_type;
bool nosimd;
};
(yeah there's a lil extra space before that closing brace, we don't question it, we respect it π«Ά)
π Members π
proportion_of_totalβ how long this chunk is compared to the total length, given as a proportion out ofTEST_SG_TOTALso it scales to fit any test vector. it's giving adaptable, iconic, main character energy πoffsetβ the byte offset into a 2-page buffer where this chunk is gonna start. like, where it sits. its little home πoffset_relative_to_alignmaskβ if this istrue, bestie, we add the algorithm'salignmaskto the offset. that's the whole thing β¨flush_typeβ for hashes, this decides whether an update should happen right now vs. continuing to accumulate data. so likeβ¦ do it now or keep stacking? the eternal question πnosimdβ if we're doing the pending update, should we do it with SIMD disabled?bool, so yes or no, no in-between π
π¦ Description π¦
so this struct describes one entry of a scatterlist that's being constructed to check a crypto test vector. one entry. one lil guy. doing its part in the bigger picture π§
β SEE ALSO β
go check these out, iykyk:
- Kernel file
./crypto/testmgr.c struct testvec_config(9)build_test_sglist(9)
and that's the page!! mwah π this little beauty lives in ./crypto, it's stamped October 2026, and it goes by struct test_sg_division(9) β 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