zstd_cctx_set_param(9)
β¨ zstd_cctx_set_param β¨
okay bestie, welcome to the Kernel API Manual entry for zstd_cctx_set_param(9) β yes that (9) is the section number, we're in the kernel section, very demure, very mindful π
π NAME π
zstd_cctx_set_param β sets a compression parameter. that's it. that's the whole job. she sets one param and she goes home π
π¦ SYNOPSIS π¦
size_t zstd_cctx_set_param (zstd_cctx *cctx , zstd_cparameter param ,
int value );
like, look at her. three args, one return value, zero drama (mostly) β¨
πΈ ARGUMENTS πΈ
cctxβ the context, your main character. π«Ά she must have been initialized withzstd_init_cctxfirst, no cap. don't be out here passing an uninitialized context, that's not the vibe.paramβ the parameter you wanna set. thezstd_cparameterin question. pick your fighter πvalueβ the value you're setting that parameter to. anint. simple. iconic.
π₯ RETURN π₯
zero, or an error π and if you get an error you can check it with zstd_is_error. that's literally the whole return story, go check your errors bestie, i'm begging π§
π SEE ALSO π
the whole friend group, fr fr β they all live in the kernel file ./include/linux/zstd.h:
zstd_compress_bound(9)zstd_is_error(9)zstd_get_error_code(9)zstd_get_error_name(9)zstd_min_clevel(9)zstd_max_clevel(9)zstd_default_clevel(9)zstd_get_params(9)zstd_get_cparams(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 entire roster. hydrate, don't skip π
and that's the page, bestie π«Ά this lil' corner of the kernel docs lives in ./include/linux and the version on the tin says October 2026 β periodt, go compress something π
β¨
π¦ 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