nx842_exec_vas(9)
πΈ nx842_exec_vas πΈ
okay so bestie, you're in the Kernel API Manual, section 9, and today's main character is nx842_exec_vas. she compresses, she decompresses, she does it all on the NX842 coprocessor β let's get into it π
β¨ NAME β¨
nx842_exec_vas β compress/decompress data using the 842 algorithm π
β¨ SYNOPSIS β¨
int nx842_exec_vas (const unsigned char *in , unsigned int inlen ,
unsigned char *out , unsigned int *outlenp , void *workmem , int fc );
β¨ ARGUMENTS β¨
inβ the input buffer pointer, aka where your data lives rn π«Άinlenβ the input buffer size, gotta tell her how much to look atoutβ the output buffer pointer, where the glow-up happens β¨outlenpβ the output buffer size pointer (it's a pointer, she points, that's her job)workmemβ working memory buffer pointer, and its size is determined bynx842_powernv_driver.workmem_sizeβ very specific, no guessing π₯fcβ the function code, see CCW Function Codes innx-842.hiykyk π
β¨ DESCRIPTION β¨
So the (De)compression is provided by the NX842 coprocessor on IBM PowerNV systems, and what she does is compress or decompress the provided input buffer straight into the provided output buffer. literally her whole thing π
Upon return from this function outlen contains the length of the output data β that's your receipt, keep it. If there's an error, then outlen will be 0 and the error will be specified by the return code from this function. so if you see a zero, don't panic, just read the return code, bestie π
β οΈ the workmem buffer should only be used by one function call at a time. one at a time. do not share. she is not built for that chaos π
β¨ RETURN β¨
0β Success, output of lengthoutlenpstored in the buffer atoutπ slay-ENODEVβ Hardware unavailable, so likeβ¦ the hardware ghosted you π-ENOSPCβ Output buffer is to small (yes, "to", that's how it's written in here, don't come for me π)-EMSGSIZEβ Input buffer too large, she said that's too much-EINVALβ buffer constraints do not fixnx842_constraints-EPROTOβ hardware error during operation, not the vibe-ETIMEDOUTβ hardware did not complete operation in reasonable time β°-EINTRβ operation was aborted π«
β¨ SEE ALSO β¨
Kernel file ./drivers/crypto/nx/nx-common-powernv.c β plus go read nx842_exec_icswx(9), nx842_powernv_compress(9), and nx842_powernv_decompress(9) when you're done here, they're all linked up like a little friend group π¦
π and that's the page!! brought to you by./drivers/crypto/nx, dated October 2026, filed undernx842_exec_vas(9)β mwah, go compress something iconic π
π¦ 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