unregister_key_type(9)
π unregister_key_type β like, the un-registering one, from section 9 of the Kernel API Manual, bestie
β¨ NAME β¨
unregister_key_type β removes a type of key from the registry. bye-bye key type π«Ά
πΈ SYNOPSIS πΈ
void unregister_key_type(struct key_type *ktype);
π¦ ARGUMENTS π¦
ktypeβ the key type. that's it, that's the argument. the key type in question, the one you're evicting π
π DESCRIPTION π
okay so here's the tea β β you call this and it unregisters a key type, and it also marks all the extant keys of this type as dead. yes, all of them. every single one that's still out there living its best life. not me being the grim reaper of key types π
then? those keys of this type get destroyed to get rid of their payloads, and they and their links will be garbage collected as soon as possible. so it's giving cleanup era, it's giving tidy queen energy π§Ήβ¨
lowkey important vibe check: this isn't a "hmm maybe later" situation β the keys get marked dead, the payloads get yeeted, and the collectors come through ASAP. no cap. π
π SEE ALSO π
- Kernel file
./security/keys/key.c key_alloc(9)key_payload_reserve(9)key_instantiate_and_link(9)key_reject_and_link(9)key_put(9)key_create_or_update(9)key_create(9)key_update(9)key_revoke(9)key_invalidate(9)generic_key_instantiate(9)register_key_type(9)β the reverse queen, the one that puts them in π
and that's the whole page, bestie!! sign-off time: this iconic piece of documentation comes from the source at ./security/keys and it's dated October 2026 ππ slay, go unregister 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