crypto_register_scomp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 iykyk
  • crypto_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