STRUCT KPP_INSTANCE(9)
β¨ struct kpp_instance β KPP template instance β¨
Hiii bestie π welcome to the <struct kpp_instance(9)> page β it's a Kernel API Manual moment, and honestly? iconic. This is where KPP template instances live, and we're gonna walk through every member together, no cap.
πΈ SYNOPSIS πΈ
struct kpp_instance {
void (*free)(struct kpp_instance *inst);
union {
struct {
char head[offsetof(struct kpp_alg, base)];
struct crypto_instance base;
} s;
struct kpp_alg alg;
};
};
π Members π
freeβ the callback that gets invoked when the instance gets destroyed (rip little instance π). Must be set. Like, non-negotiable bestie β it's required.{unnamed_union}β anonymous. That's it, that's the whole vibe. It's an unnamed union, slaying quietly πsβ Internal. This is the generic crypto core instance state, laid out properly so it can alias withalgas needed. Under the hood energy, not for you to poke at π«Άalgβ thestruct kpp_algimplementation that the instance is providing. This is the actual main character of the struct π
π SEE ALSO π
Kernel file ./include/crypto/internal/kpp.h β go read it, iykyk π
struct crypto_kpp_spawn(9)kpp_crypto_instance(9)kpp_instance(9)kpp_alg_instance(9)kpp_instance_ctx(9)crypto_register_kpp(9)crypto_unregister_kpp(9)kpp_register_instance(9)crypto_grab_kpp(9)crypto_drop_kpp(9)crypto_spawn_kpp_alg(9)crypto_spawn_kpp(9)
okay that's the whole page bestie, you ate that π remember: set your free callback or it's giving undefined chaos π
sign-off time β¨ this lil masterpiece lives in ./include/crypto/internal and the version is stamped October 2026. mwah, go forth and register your KPP instances responsibly ππ§ββοΈ
π¦ 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