cpacf_km(9)
π cpacf_km β the KM (CIPHER MESSAGE) instruction, but make it make sense
okay so bestie, this is a page from the Kernel API Manual (cpacf_km(9)), and it's literally the kernel-side hook that runs the KM (CIPHER MESSAGE) instruction on s390. sit down, hydrate, and let's get into it π«Ά
β¨ SYNOPSIS β¨
int cpacf_km (unsigned long func , void *param , u8 *dest , const u8
*src , long src_len );
likeβ¦ five arguments. that's it. that's the whole vibe check. π
π ARGUMENTS π
funcβ the function code that gets passed straight to KM π see theCPACF_KM_xxxdefines for your options, bestie.paramβ the address of the parameter block π¦ eachfunchas its own parameter block layout, and the POP has the deets on all of them.destβ address of the destination memory area, aka where the good stuff lands π―srcβ address of the source memory area, aka the input, the main character πΈsrc_lenβ the length of thesrcoperand, in bytes π measured in bytes, no cap.
π¦ DESCRIPTION π¦
so here's what it actually returns, and this is highkey the important bit:
- returns
0for the queryfuncπ - returns the number of processed bytes for the encryption/decryption funcs π₯
that's it. that's the description. short, iconic, to the point. periodt. β¨
π SEE ALSO π
go read these next so you can be that girl who knows the whole CPACF family π
- Kernel file
./arch/s390/include/asm/cpacf.h cpacf_query(9)cpacf_qai(9)cpacf_kmc(9)cpacf_kimd(9)cpacf_klmd(9)_cpacf_kmac(9)cpacf_kmac(9)cpacf_kmctr(9)cpacf_prno(9)cpacf_trng(9)cpacf_pcc(9)cpacf_pckmo(9)cpacf_kma(9)
okay that's the whole page, mwah π this lil beauty lives at ./arch/s390/include/asm and it's dated October 2026, page cpacf_km(9) β go forth and cipher, bestie π§ββοΈπ
π¦ 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