STRUCT CRYPTO_ACOMP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, iconic
  • reqsize β€” context size for (de)compression requests πŸ“ know your size, bestie
  • base β€” 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