key_remove_domain(9)
π NAME π
okay bestie, meet key_remove_domain β βkill off a key domain and gc its keys.β This is key_remove_domain(9) from the Kernel API Manual, and itβs literally here to mark a domain tag dead, release a ref on it, and poke the gc if that wasnβt the last reference. no cap. π«Ά
β¨ SYNOPSIS β¨
void key_remove_domain (struct key_tag *domain_tag );
πΈ ARGUMENTS πΈ
domain_tagβ the domain tag to release. thatβs the one. π
π¦ DESCRIPTION π¦
So hereβs the vibe: key_remove_domain() marks a domain tag as being dead and releases a ref on it. π
If that ref wasnβt the last reference, the garbage collector is poked to try and delete all keys that were in the domain. periodt. π§
lowkey important: βnot the last referenceβ is the condition for poking the gc β thatβs the exact branch from the original. donβt skip it. π
β SEE ALSO β
Kernel file ./security/keys/keyring.c β and the related pages are:
key_put_tag(9)restrict_link_reject(9)keyring_search_rcu(9)keyring_search(9)keyring_restrict(9)key_link(9)key_unlink(9)key_move(9)keyring_clear(9)
xoxo, your ./security/keys girlie β October 2026 edition, key_remove_domain(9) signing off πβ¨
π¦ 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