cpacf_kmctr(9)
π 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 theCPACF_KMCTR_xxxdefines, they're the ones who actually know things πparamβ address of the parameter block; check the POP for the deets on eachfunc(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 thesrcoperand, 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
0for 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
cpacf_query(9)cpacf_qai(9)cpacf_km(9)cpacf_kmc(9)cpacf_kimd(9)cpacf_klmd(9)_cpacf_kmac(9)cpacf_kmac(9)cpacf_prno(9)cpacf_trng(9)cpacf_pcc(9)cpacf_pckmo(9)cpacf_kma(9)
π«Ά quick vibe check bestie:_cpacf_kmac(9)andcpacf_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
- 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