STRUCT SCOMP_ALG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, meet struct scomp_alg(9) β€” the synchronous compression algorithm struct, straight from the Kernel API Manual πŸ’… this is the whole vibe for algorithms that compress and decompress synchronously, and we're gonna go through every single member, no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the exact struct, line breaks and all β€” don't let the formatting jump-scare you 😭:

       struct scomp_alg {
           int (*compress)(struct crypto_scomp *tfm, const u8 *src, unsigned
       int slen, u8 *dst, unsigned int *dlen, void *ctx);
           int (*decompress)(struct crypto_scomp *tfm, const u8 *src, unsigned
       int slen, u8 *dst, unsigned int *dlen, void *ctx);
           struct crypto_acomp_streams streams;
           union {
             struct COMP_ALG_COMMON;
             struct comp_alg_common calg;
           };
        };

πŸ’– Members πŸ’–

  • compress β€” this function performs a compress operation, slay ✨
  • decompress β€” this function performs a de-compress operation, the reverse vibe πŸ’«
  • streams β€” per-cpu memory for algorithm, literally per-cpu πŸ“
  • {unnamed_union} β€” anonymous. that's it, that's the whole note 🫠
  • COMP_ALG_COMMON β€” see struct comp_alg_common for the lore πŸ‘€
  • calg β€” the Cmonn algorithm data structure shared with acomp (yes, β€œCmonn” β€” I'm not fixing it, I'm just reporting it πŸ’€)

🌈 SEE ALSO 🌈


that's the whole page, bestie πŸŽ€ signing off from the source/version spot at ./include/crypto/internal, dated October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from