sw842_compress(9)
β¨ sw842_compress(9) β¨
okay so we're deep in the Kernel API Manual today bestie, and this one is a little compression gremlin from the 842 corner of the kernel π
buckle up π
πΈ NAME πΈ
sw842_compress β and honestly? the original manpage leaves the description blank, so no cap, the name section is just the name. iconic minimalism, iykyk π¦ (the DESCRIPTION below is where the actual tea is)
π SYNOPSIS π
int sw842_compress (const u8 *in , unsigned int ilen , u8 *out ,
unsigned int *olen , void *wmem );
like, she takes five things and returns an int. that's the whole vibe check π₯
π«Ά ARGUMENTS π«Ά
inβ "undescribed" π bestie the docs literally say-- undescribed --. fr fr, the source is the only lore we get.ilenβ also-- undescribed --πoutβ you guessed it:-- undescribed --πolenβ-- undescribed --(but keep an eye on this one, she's important in RETURN π)wmemβ-- undescribed --β¨ (scroll to RETURN, she stays mysterious)
ngl, the manpage is out here giving nothing for these five. don't shoot the messenger π the actual behaviour is spelled out in DESCRIPTION, so read on π
π¦ DESCRIPTION π¦
okay so here's the real deal π she compresses the uncompressed buffer of length ilen sitting at in, writing it into the output buffer out β and she promises to use no more than olen bytes to do it. the format is the 842 compression format π that's the whole assignment, and she ate.
π RETURN π
- returns
0on success π₯³ - returns an error on failure π
- and the
olenparameter β remember her from ARGUMENTS? β will contain the number of output bytes written on success, or0on error. so like, she's your little receipt π§Ύ check her before you trust anything π
β SEE ALSO β
- Kernel file
./lib/842/842_compress.cβ the source, the lore, the whole origin story π go read her π«Ά
and that's the whole page, bestie β¨ ./lib/842, October 2026, Kernel API Manual β sw842_compress(9) is a wrap ππ§ββοΈ 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