crypto_free_acomp(9)
π crypto_free_acomp β free ACOMPRESS tfm handle
okay so this is crypto_free_acomp(9) from the Kernel API Manual, and honestly? she's short, she's sweet, she's the cleanup queen of the Asynchronous Compression API. bestie, this is the function you call when you're done with an ACOMPRESS tfm handle and you want to give that memory back before it becomes a leak you have to explain in code review π
β¨ SYNOPSIS β¨
void crypto_free_acomp (struct crypto_acomp *tfm );
that's it. that's the whole vibe. no return value, she just frees and dips π«Ά
π ARGUMENTS π
tfmβ the ACOMPRESS tfm handle, and it's gotta be one that was allocated withcrypto_alloc_acomp. that's the matching pair, iykyk β you allocate it withcrypto_alloc_acomp, you free it withcrypto_free_acomp. iconique symmetry π
πΈ DESCRIPTION πΈ
so here's the tea: this function frees the ACOMPRESS tfm handle you hand it.
and the actually important part β if tfm is a NULL pointer or an error pointer, this function does nothing. not a crash, not a warning, not a dramatic exit. she just quietly returns like nothing happened. no cap, it's genuinely that chill π
fr fr this is the safe-cleanup behaviour: NULL or error pointer in, nothing happens out. so yes, you still pass it whatever you've got π
π¦ SEE ALSO π¦
go read the family, bestie, they all live together π
- Kernel file
./include/crypto/acompress.h struct acomp_req(9)struct crypto_acomp(9)- Asynchronous Compression API(9)
crypto_alloc_acomp(9)crypto_alloc_acomp_node(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) is listed twice in the original list β and we're keeping it twice, because accuracy is the moment, periodt β¨)
β the cute lil sign-off β
source file: ./include/crypto Β· dated October 2026 Β· this has been crypto_free_acomp(9), in the Kernel API Manual π§π
now go free that handle, bestie β memory leaks are not the aesthetic ππ₯
π¦ 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