nx842_powernv_compress(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie β€” this is nx842_powernv_compress(9), straight out of the Kernel API Manual, and it's literally the compress function for the 842 algorithm. no cap, every fact is staying, we're just giving it main character energy πŸ’…

πŸŽ€ NAME πŸŽ€

nx842_powernv_compress β€” Compress data using the 842 algorithm

✨ SYNOPSIS ✨

here's the signature, copied exactly, don't @ me 🫢

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • in β€” input buffer pointer
  • inlen β€” input buffer size
  • out β€” output buffer pointer
  • outlenp β€” output buffer size pointer
  • wmem β€” working memory buffer pointer, size determined by nx842_powernv_driver.workmem_size

πŸ’– DESCRIPTION πŸ’–

Compression provided by the NX842 coprocessor on IBM PowerNV systems. The input buffer is compressed and the result is stored in the provided output buffer. iconic behavior, honestly 🌸

Upon return from this function, outlen contains the length of the compressed 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 if you see a zero, that's your vibe check saying something went wrong 😭

πŸ”₯ RETURN πŸ”₯

see nx842_powernv_exec β€” short and sweet, periodt.

🌈 SEE ALSO 🌈

Kernel file ./drivers/crypto/nx/nx-common-powernv.c nx842_exec_icswx(9), nx842_exec_vas(9), nx842_powernv_decompress(9)


mwah πŸ’‹ this page came from source/version ./drivers/crypto/nx and is dated October 2026 β€” nx842_powernv_compress(9), out. 🫢✨

πŸ“¦ where this page comes from