zstd_max_clevel(9)
π 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:
zstd_compress_bound(9)zstd_is_error(9)zstd_get_error_code(9)zstd_get_error_name(9)zstd_min_clevel(9)zstd_default_clevel(9)zstd_get_params(9)zstd_get_cparams(9)zstd_cctx_set_param(9)zstd_cctx_workspace_bound(9)zstd_cctx_workspace_bound_with_ext_seq_prod(9)zstd_init_cctx(9)zstd_compress_cctx(9)zstd_create_cctx_advanced(9)zstd_free_cctx(9)zstd_create_cdict_byreference(9)zstd_free_cdict(9)zstd_compress_using_cdict(9)zstd_dctx_workspace_bound(9)zstd_init_dctx(9)zstd_decompress_dctx(9)zstd_create_ddict_byreference(9)zstd_free_ddict(9)zstd_create_dctx_advanced(9)zstd_free_dctx(9)zstd_decompress_using_ddict(9)zstd_cstream_workspace_bound(9)zstd_cstream_workspace_bound_with_ext_seq_prod(9)zstd_init_cstream(9)zstd_reset_cstream(9)zstd_compress_stream(9)zstd_flush_stream(9)zstd_end_stream(9)zstd_dstream_workspace_bound(9)zstd_init_dstream(9)zstd_reset_dstream(9)zstd_decompress_stream(9)zstd_find_frame_compressed_size(9)zstd_get_frame_header(9)zstd_compress_sequences_and_literals(9)
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
- 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