cpacf_kmctr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpacf_kmctr(9) β€” a Kernel API Manual moment ✨

okay so bestie, welcome to the Kernel API Manual entry for cpacf_kmctr and honestly? she's iconic. this is the one that literally runs the KMCTR (CIPHER MESSAGE WITH COUNTER) instruction. no cap, that's her whole thing. πŸŽ€


✨ NAME ✨

cpacf_kmctr β€” executes the KMCTR (CIPHER MESSAGE WITH COUNTER) instruction πŸ’–


🌸 SYNOPSIS 🌸

int cpacf_kmctr (unsigned long func , void *param , u8 *dest , const u8 *src , long src_len , u8 *counter );

like, that's the whole signature. she's serving function prototype realness 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

okay so here's the cast of characters, everyone plays a role:

  • func β€” the function code handed off to KMCTR; go look at the CPACF_KMCTR_xxx defines, they're the ones who actually know things πŸ‘€
  • param β€” address of the parameter block; check the POP for the deets on each func (yes, every single one has its own lore) πŸ“–
  • dest β€” address of the destination memory area, where the good stuff lands 🌈
  • src β€” address of the source memory area, where the good stuff comes from ⭐
  • src_len β€” length of the src operand, counted in bytes (bytes!! not vibes!!) πŸ”₯
  • counter β€” address of the counter value, she's the main character of the counter, obviously πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so what does she return? here's the tea:

  • returns 0 for the query func
  • returns the number of processed bytes for the encryption/decryption funcs

that's it, that's the whole description, and honestly she ate πŸ’…βœ¨


πŸŽ€ SEE ALSO πŸŽ€

the whole friend group, fr fr β€” plus the kernel file they all live in:

Kernel file ./arch/s390/include/asm/cpacf.h


🫢 quick vibe check bestie: _cpacf_kmac(9) and cpacf_kmac(9) are two different entries β€” one's got the leading underscore, one doesn't. don't get them twisted, that's not the move 😭

and that's the page!! mwah πŸ’‹ this lil beauty lives in ./arch/s390/include/asm, dated October 2026, and she answers to cpacf_kmctr(9) β€” go off, queen πŸ‘‘πŸŒΈπŸ“

πŸ“¦ where this page comes from