acomp_request_set_src_sg(9)
π acomp_request_set_src_sg(9) β straight outta the Kernel API Manual
okay so real talk, bestie, this whole page lives in the Kernel API Manual and it's about one tiny little function that does one tiny little thing, and honestly? she serves. let's get into it. π
β¨ NAME β¨
acomp_request_set_src_sg β sets source scatterlist. that's it. that's the whole job. she sets the source scatterlist and she goes home. π
πΈ SYNOPSIS πΈ
void acomp_request_set_src_sg (struct acomp_req *req , struct
scatterlist *src , unsigned int slen );
literally just three lil params and no return value. no cap, she's a void. she gives nothing back because she's too booked and busy giving you a configured request. π₯
π¦ ARGUMENTS π¦
reqβ the asynchronous compress request. this is the main character right here, the request object you're about to decorate with a source scatterlist. πsrcβ pointer to input buffer scatterlist. yeah, the actual scatterlist, the pointer to it, the whole vibe. π§slenβ size of the input buffer. anunsigned int, as one does. don't forget her, she matters. β
π DESCRIPTION π
so what does she actually do? she sets the source scatterlist required by an acomp operation. that's the whole tea. β
if you've got an acomp operation that needs to know where its input source scatterlist lives, this is the function that tells it. your req gets the src with slen bytes' worth of intent, and then you can go off and actually run the compress. it's giving setup-era, it's giving preparation, it's giving "i'm not doing the work, i'm just making the work possible." π
ngl bestie, this is a setup function β it doesn't compress anything by itself. pair it with the rest of the acomp squad (scroll down, there are like twenty of them) before you expect any output. π
π SEE ALSO π
everything is in the kernel file ./include/crypto/acompress.h β and the whole friend group is tagged below, fr fr:
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 she's listed twice, and honestly? she earned it. πacomp_request_free(9)acomp_request_set_callback(9)acomp_request_set_params(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)
that's the whole page, bestie. source directory ./include/crypto, dated October 2026 β mwah, take care of her, and remember: set your scatterlist before you compress. π«Άβ¨π
π¦ 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