STRUCT CCP_PASSTHRU_ENGINE(9)
π struct ccp_passthru_engine(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes we're literally in the kernel now, and this page is all about struct ccp_passthru_engine, which is the CCP pass-through operation. it's giving "glow-up for your data" energy π¦
β¨ NAME β¨
struct ccp_passthru_engine β the CCP pass-through operation, aka the lil struct that says "hey, run this data through, do a bitsy thing to it, and hand it back" π«
πΈ SYNOPSIS πΈ
struct ccp_passthru_engine {
enum ccp_passthru_bitwise bit_mod;
enum ccp_passthru_byteswap byte_swap;
struct scatterlist *mask;
u32 mask_len;
struct scatterlist *src, *dst;
u64 src_len;
u32 final;
};
like, that's the whole vibe right there. no cap, every field matters π₯
π Members π
bit_modβ the bitwise operation to perform. yes, we're doing bit math, and we're doing it fabulously πbyte_swapβ the byteswap operation to perform. for when your bytes need to switch places, main character style πmaskβ the mask to be applied to data. it's literally a mask, so it covers stuff πmask_lenβ length in bytes ofmask. gotta know your size, always πsrcβ data to be used for this operation. the input, the source material, the moment before the glow-up β¨dstβ data produced by this operation. the after pic π«Άsrc_lenβ length in bytes of data used for this operation. again: size matters, know it πfinalβ indicate final pass-through operation. the grand finale, the last number, the closing track π¬
π¦ Description π¦
so here's the tea β β these are the variables that are required to be set when you call ccp_enqueue_cmd:
bit_mod,byte_swap,src,dst,src_lenmask,mask_lenifbit_modis notCCP_PASSTHRU_BITWISE_NOOP
lowkey important: that second bullet is conditional, bestie. ifbit_modisCCP_PASSTHRU_BITWISE_NOOP, you don't needmaskandmask_len. but otherwise? you absolutely do. read the conditions, don't skip them π
π SEE ALSO π
Kernel file ./include/linux/ccp.h β and then a whole squad of friends, fr fr:
ccp_present(9)ccp_version(9)ccp_enqueue_cmd(9)struct ccp_aes_engine(9)struct ccp_xts_aes_engine(9)struct ccp_sha_engine(9)struct ccp_des3_engine(9)struct ccp_rsa_engine(9)struct ccp_passthru_nomap_engine(9)struct ccp_ecc_modular_math(9)struct ccp_ecc_point(9)struct ccp_ecc_point_math(9)struct ccp_ecc_engine(9)struct ccp_cmd(9)
like, the whole friend group showed up to the function ππ
and that's the page!! π this lil beauty lives over in ./include/linux, dated October 2026, and it's brought to you by the Kernel API Manual. go forth and pass through, bestie β periodt π
π
π¦ 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