cpacf_km(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the CPACF_KM_xxx defines for your options, bestie.
  • param β€” the address of the parameter block πŸ“¦ each func has 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 the src operand, in bytes πŸ“ measured in bytes, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's what it actually returns, and this is highkey the important bit:

  • returns 0 for the query func πŸ”
  • 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 πŸ’œ


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