acomp_request_set_params(9)
π acomp_request_set_params β Kernel API Manual energy, bestie
Okay so real talk, this is acomp_request_set_params(9) β a function from the Kernel API Manual β and it does exactly one (1) thing: it "Sets request parameters". That's the whole vibe. Iconic, minimal, no notes. π
β¨ SYNOPSIS β¨
void acomp_request_set_params (struct acomp_req *req , struct
scatterlist *src , struct scatterlist *dst , unsigned int slen ,
unsigned int dlen );
Like, it returns void. Nothing back. No "did it work", no error code, just vibes and side effects. π«Ά
πΈ ARGUMENTS πΈ
reqβ the asynchronous compress request. Your main character, fr. β¨srcβ pointer to the input buffer scatterlist. i.e. where the data you wanna squeeze is hanging out.dstβ pointer to the output buffer scatterlist. Huge caveat though: if this isNULL, the acomp layer will allocate the output memory for you. So it's not "no output", it's "you handle it, bestie". π«‘slenβ size of the input buffer. Yes,unsigned int. Yes, counts matter. πdlenβ size of the output buffer. And here's the cute little plot twist: ifdstisNULL, this can be used by the user to specify the maximum amount of memory to allocate. So like,dlendoubles as a budget when you're not providing your own destination. Budget responsibly. π
π DESCRIPTION π
Sets parameters required by an acomp operation. That's it. That's the whole description. Short, sweet, and honestly? She ate. π₯
Ngl this page is very concise β the description is literally one sentence long, so don't come at me expecting lore. The details live in the arguments up there. π
π¦ SEE ALSO π¦
Kernel file ./include/crypto/acompress.h, plus a whole friend group of related symbols:
struct acomp_req(9)struct crypto_acomp(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)β yes, it's listed twice in the source. Not me, blame the original. π (Keeping both because the rule is keep every detail, periodt.)acomp_request_free(9)acomp_request_set_callback(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)
And that's a wrap, bestie π§ β this page ships from ./include/crypto in the October 2026 release of the Kernel API Manual. Go set those params, slay, and remember: dst = NULL means the acomp layer's got your back. πβ¨
π¦ 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