sw842_compress(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 0 on success πŸ₯³
  • returns an error on failure 😭
  • and the olen parameter β€” remember her from ARGUMENTS? β€” will contain the number of output bytes written on success, or 0 on 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