zstd_cstream...kspace_bound(9)
โจ zstd_cstream...kspace_bound(9) โจ
okay so bestie, we're in the Kernel API Manual today and this one is, like, such a specific little function ๐ โ it tells you how much memory you gotta set aside before you can even think about spinning up a zstd compression stream. no cap, it's the "how big is the venue before we book the band" of kernel APIs ๐
๐ธ NAME ๐ธ
zstd_cstream_workspace_bound โ the amount of memory you need to initialize a zstd_cstream โจ
๐ฆ SYNOPSIS ๐ฆ
size_t zstd_cstream_workspace_bound (const zstd_compression_parameters *cparams );
๐ ARGUMENTS ๐
cparamsโ the compression parameters that are gonna be used for compression ๐ like, these are your settings, your vibe, your whole compression personality. you hand 'em over and it does the math ๐งฎ
๐ RETURN ๐
a lower bound on the size of the workspace that gets passed to zstd_init_cstream ๐ซ
lowkey important: it's a lower bound, not an exact number โ so don't go thinking this is the whole story, it's the floor, not the ceiling ๐
๐ SEE ALSO ๐
this list is literally the whole extended friend group, so buckle up ๐ซถ
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_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_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)
and that's the whole thing, bestie โ no crumbs left ๐ this little icon came from ./include/linux, dated October 2026, and it's filed under zstd_cstream...kspace_bound(9) forever and ever ๐ mwah ๐
๐ฆ 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