STRUCT SCOMP_ALG(9)
β¨ 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β seestruct comp_alg_commonfor 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 π
- Kernel file:
./include/crypto/internal/scompress.hπ crypto_register_scomp(9)β go register your fave πcrypto_unregister_scomp(9)β and unregister responsibly, bestie π«Ά
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
- 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