nx842_powernv_decompress(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nx842_powernv_decompress(9) πŸ’…

okay so you're in the Kernel API Manual, bestie, and this page is literally all about nx842_powernv_decompress β€” the decompression girly powered by the NX842 coprocessor 🌸


✨ NAME ✨

nx842_powernv_decompress β€” decompress data using the 842 algorithm πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int nx842_powernv_decompress (const unsigned char *in , unsigned int
       inlen , unsigned char *out , unsigned int *outlenp , void *wmem );

πŸŽ€ ARGUMENTS πŸŽ€

  • in β€” input buffer pointer, aka where the compressed data lives πŸ‘€
  • inlen β€” input buffer size, so we know how much input tea there is 🍡
  • out β€” output buffer pointer, the spot where the decompressed result goes ✨
  • outlenp β€” output buffer size pointer, because we gotta track the size situation πŸ’…
  • wmem β€” working memory buffer pointer; its size is determined by nx842_powernv_driver.workmem_size 🧠

🌈 DESCRIPTION 🌈

Decompression provided by the NX842 coprocessor on IBM PowerNV systems, no cap πŸ”₯ The input buffer is decompressed and the result is stored in the provided output buffer. That's the whole main-character job πŸ’–

Upon return from this function outlen contains the length of the decompressed data. If there is an error then outlen will be 0 and an error will be specified by the return code from this function. So yeah β€” zero means something went sideways, bestie 😭


πŸ‘‘ RETURN πŸ‘‘

see nx842_powernv_exec ⭐


🫢 SEE ALSO 🫢


signed off with source/version ./drivers/crypto/nx, dated October 2026 β€” periodt, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from