zstd_cctx_set_param(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 with zstd_init_cctx first, no cap. don't be out here passing an uninitialized context, that's not the vibe.
  • param β€” the parameter you wanna set. the zstd_cparameter in question. pick your fighter πŸ’€
  • value β€” the value you're setting that parameter to. an int. 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:

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