STRUCT CRYPTO_ACOMP(9)
π struct crypto_acomp(9) β a Kernel API Manual moment π
okay so bestie, welcome to struct crypto_acomp, straight out of the Kernel API Manual β¨ this is the whole vibe of user-instantiated objects that encapsulate algorithms and core processing logic β like, the object itself is lowkey the main character and it's holding the algorithm and the processing logic together π«Ά
πΈ NAME πΈ
struct crypto_acomp β user-instantiated objects which encapsulate algorithms and core processing logic π«
β¨ SYNOPSIS β¨
struct crypto_acomp {
int (*compress)(struct acomp_req *req);
int (*decompress)(struct acomp_req *req);
unsigned int reqsize;
struct crypto_tfm base;
};
no cap, that's the whole shape of it π¦
π Members π
compressβ this function performs a compress operation π₯ it's giving "do the thing"decompressβ this function performs a de-compress operation π the reverse vibe, iconicreqsizeβ context size for (de)compression requests π know your size, bestiebaseβ common crypto API algorithm data structure π§ the foundation everything sits on
π SEE ALSO π
Kernel file ./include/crypto/acompress.h, struct acomp_req(9), Asynchronous Compression API(9), crypto_alloc_acomp(9), crypto_alloc_acomp_node(9), crypto_free_acomp(9), acomp_request_alloc_extra(9), acomp_request_alloc_extra(9), acomp_request_free(9), acomp_request_set_callback(9), acomp_request_set_params(9), acomp_request_set_src_sg(9), acomp_request_set_src_dma(9), acomp_request_set_src_nondma(9), acomp_request_set_src_folio(9), acomp_request_set_dst_sg(9), acomp_request_set_dst_dma(9), acomp_request_set_dst_nondma(9), acomp_request_set_dst_folio(9), crypto_acomp_compress(9), crypto_acomp_decompress(9)
β οΈ yes, acomp_request_alloc_extra(9) really does show up twice in there β that's not me being messy, that's canon π
and that's the whole page, periodt π this little gem lives in ./include/crypto, dated October 2026, and it's filed under struct crypto_acomp(9) β go read the SEE ALSO list, iykyk ππ¦πΈ
π¦ 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