request_key_net(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 found
  • net β€” the network namespace that is the key's domain of operation 🌐 this is literally the whole point of this variant, iykyk
  • callout_info β€” the data to pass to the instantiation upcall (or NULL) πŸ“ž or NULL, 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_info must be a NUL-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 ⭐


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