request_key_tag(9)
request_key_tag π
okay bestie, welcome to the Kernel API Manual page for request_key_tag β¨ itβs giving βrequest a key and wait for construction,β and honestly? iconic. letβs get into it.
π NAME π
request_key_tag β Request a key and wait for construction.
β¨ SYNOPSIS β¨
struct key * request_key_tag (struct key_type *type , const char
*description , struct key_tag *domain_tag , const char *callout_info );
π ARGUMENTS π
typeβ the type of key. like, what kind of key are we even dealing with, bestie?descriptionβ the searchable description of the key. yes, searchable. periodt.domain_tagβ the domain in which the key operates. domain vibes, got it.callout_infoβ the data to pass to the instantiation upcall (orNULL). if thereβs no data, itβsNULL, no cap.
π¦ DESCRIPTION π¦
okay so this works as for request_key_and_link, except for a few very important details:
- it does not add the returned key to a keyring if found. no sneaky keyring add, bestie.
- new keys are always allocated in the userβs quota. yes, always.
- the
callout_infomust be aNUL-terminated string. literal must. - no auxiliary data can be passed. none, zero, zilch.
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 wait, and that wait is non-interruptible β keep that in mind π
π SEE ALSO π
- Kernel file
./security/keys/request_key.c complete_request_key(9)request_key_and_link(9)wait_for_key_construction(9)request_key_with_auxdata(9)request_key_rcu(9)
mwah π thatβs the page! source path is ./security/keys, the date is October 2026, and the page is request_key_tag(9) β love that for us π«Άβ¨
π¦ 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