zstd_cctx_workspace_bound(9)
hey bestie π welcome to zstd_cctx_workspace_bound(9) from the Kernel API Manual. this is the page for the max memory needed to initialize a zstd_cctx β yes, the workspace-size check, and it's lowkey important. let's get into it β¨
π NAME π
zstd_cctx_workspace_bound β max memory needed to initialize a zstd_cctx. that's the whole name, and it ate π
β¨ SYNOPSIS β¨
size_t zstd_cctx_workspace_bound (const zstd_compression_parameters
*parameters );
the signature is right there, character for character, bestie.
π ARGUMENTS π
parametersβ the compression parameters to be used. π
π¦ DESCRIPTION π¦
okay so here's the tea: if multiple compression parameters might be used, the caller must call zstd_cctx_workspace_bound for each set of parameters and use the maximum size. must is doing a lot of work there β don't skip it, bestie. call it for every parameter set, then take the biggest size. no cap.
πΈ RETURN πΈ
A lower bound on the size of the workspace that is passed to zstd_init_cctx. that's the return value: the lower-bound workspace size, periodt.
π₯ SEE ALSO π₯
peep the Kernel file ./include/linux/zstd.h, plus all these related pages:
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_set_param(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)
xoxo, this page is sourced from ./include/linux, dated October 2026, and it's zstd_cctx_workspace_bound(9) β 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