zstd_max_clevel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… zstd_max_clevel(9) β€” like, the whole vibe

okay so bestie, we're in the Kernel API Manual today and this page is literally about the tiniest little function that answers one giant question: what's the highest compression level the kernel's zstd will even let you ask for? πŸ‘‘ It's zstd_max_clevel and she is short, she is sweet, she is the ceiling of your compression dreams. πŸŽ€


✨ NAME ✨

zstd_max_clevel β€” the maximum allowed compression level, periodt. πŸ’–


🌸 SYNOPSIS 🌸

int zstd_max_clevel (void );

like, that's it. that's the whole function. no cap. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • void β€” no arguments, none, zero, nothing. she takes nothing from you and gives you a number back. main character energy fr fr πŸ’…

⭐ RETURN ⭐

returns the maximum allowed compression level. that's the whole return value, that's the whole story, go off queen πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

okay this is the part where the whole zstd friend group shows up, and honestly? iconic. 🫢 the header lives in ./include/linux/zstd.h under the kernel file tree, and here's everyone:

like, that's the whole squad. iykyk. 🌈


ngl the only thing she does is hand you the max compression level and dip β€” no side effects, no drama, no surprises. a lowkey legend. πŸ’€πŸ’–

aaaand that's the page!! this little cutie ships from the source tree at ./include/linux and she's dated October 2026 β€” so like, future girlie behaviour honestly πŸŒΈπŸ¦‹ mwah, bye bestie!! πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from