STRUCT TEST_SG_DIVISION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of TEST_SG_TOTAL so 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 is true, bestie, we add the algorithm's alignmask to 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:


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