xz_dec_reset(9)
π xz_dec_reset(9)
okay so this is from the Kernel API Manual bestie, and it's literally about resetting an already allocated decoder state. no biggie but also kind of iconic π
β¨ NAME β¨
xz_dec_reset β reset an already allocated decoder state
πΈ SYNOPSIS πΈ
void xz_dec_reset (struct xz_dec *s );
π¦ ARGUMENTS π¦
sβ the decoder state, and it's gotta be one you allocated usingxz_dec_init, okurrr? π
π DESCRIPTION π
So here's the vibe: this function lets you reset the multi-call decoder state without freeing and reallocating memory with xz_dec_end and xz_dec_init. like, why do all that extra work when you can just... reset? slay. β¨
Now listen up, because this is the important bit π β in single-call mode, xz_dec_reset is always called at the beginning of xz_dec_run. so an explicit call to xz_dec_reset is useful only in multi-call mode. that's the whole tea, no cap. π«
lowkey the takeaway: single-call girlies are already covered, multi-call girlies gotta call it themselves π
π SEE ALSO π
- Kernel file
./include/linux/xz.henumxz_mode(9) - enum
xz_ret(9) - struct
xz_buf(9) xz_dec_init(9)xz_dec_run(9)xz_dec_end(9)- MicroLZMA decompressor(9)
xz_dec_microlzma_alloc(9)xz_dec_microlzma_reset(9)xz_dec_microlzma_run(9)xz_dec_microlzma_end(9)
and that's the whole page bestie π§π go forth and reset responsibly. this came from ./include/linux, dated October 2026 β mwah, stan, periodt. π₯π
π¦ 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