crypto_register_scomp(9)
π crypto_register_scomp(9) π
okay so this is a page straight out of the Kernel API Manual, bestie β it's all about crypto_register_scomp, and honestly? she's a tiny function with one job and she does it. let's get into it π«Ά
β¨ NAME β¨
crypto_register_scomp β Register synchronous compression algorithm π
β¨ SYNOPSIS β¨
int crypto_register_scomp (struct scomp_alg *alg );
that's it. that's the whole signature. one pointer in, one int out. main character energy fr π
πΈ ARGUMENTS πΈ
algβ the algorithm definition. like, the actual description of the compression algorithm you're putting on the registry. this is your whole personality for the call π¦
π DESCRIPTION π
so what does she do? this function registers an implementation of a synchronous compression algorithm. that's the vibe. you hand her your alg, she gets it registered. iconic, no notes β¨
β RETURN β
- zero on success β slay, we love a clean run π
- error code in case of error β not slay, but at least she tells you π
π¦ SEE ALSO π¦
- Kernel file
./include/crypto/internal/scompress.hβ that's where the goods live π struct scomp_alg(9)β the struct itself, go read it iykykcrypto_unregister_scomp(9)β the breakup function, for when you're done π
ngl bestie, if you're registering something you should probably know how to un-register it too. crypto_unregister_scomp(9) is right there. just saying π
and that's the page!! π source-wise this one comes from ./include/crypto/internal and it's dated October 2026 β so like, mark your calendars or whatever π mwah, go compress something synchronously ππ§
π¦ 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