request_key_net(9)
π request_key_net β a Kernel API Manual moment
okay so bestie, welcome to request_key_net(9) β¨ this is the page where the kernel asks for a key that belongs to a net namespace and then justβ¦ waits for it to be built π«Ά
β¨ NAME β¨
request_key_net β request a key for a net namespace and wait for construction πΈ
π SYNOPSIS π
request_key_net (type , description , net , callout_info );
π¦ ARGUMENTS π¦
typeβ the type of key, like what kind of key are we even asking for πdescriptionβ the searchable description of the key π yes bestie, searchable, it's how the key gets foundnetβ the network namespace that is the key's domain of operation π this is literally the whole point of this variant, iykykcallout_infoβ the data to pass to the instantiation upcall (orNULL) π orNULL, your call, no pressure
π DESCRIPTION π
So it's the same as request_key, with a few very important plot twists π and the way that it's different is:
- it does not add the returned key to a keyring if found β no keyring, no problem, periodt π
- new keys are always allocated in the user's quota β every single time, no exceptions π
- the
callout_infomust be aNUL-terminated string π€ that's a hard requirement, not a vibe - no auxiliary data can be passed π« none, zero, nada
Only keys that operate the specified network namespace are used π so if a key isn't about that netns, it's not invited to the group chat, sorry not sorry π
Furthermore β and yes we love a "furthermore" β it then works as wait_for_key_construction to wait for the completion of keys undergoing construction, with a non-interruptible wait π so it's gonna sit there and wait the whole time, you cannot interrupt it, that's just the deal bestie, fr fr
β οΈ hi again: that wait is non-interruptible, so do not expect to just gently tap out of it. It waits. That's the whole personality π
β SEE ALSO β
- Kernel file
./include/linux/key.h request_key(9)request_key_net_rcu(9)key_is_positive(9)
and that's the page, bestie π it lives in ./include/linux, the version is October 2026, and it's filed under request_key_net(9) β¨ go forth and request keys 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