uv_retrieve_secret(9)
bestie, welcome to uv_retrieve_secret(9) β it's from the Kernel API Manual, and it's literally the glow-up for grabbing a secret value by its index. π
β¨ NAME β¨
uv_retrieve_secret β get the secret value for the secret index. π
π SYNOPSIS π
int uv_retrieve_secret (u16 secret_idx , u8 *buf , size_t buf_size );
π«Ά ARGUMENTS π«Ά
secret_idxβ Secret index for which the secret should be retrieved. like, which secret are we pulling today? πbufβ Buffer to store retrieved secret. this is where the secret lands, bestie. πbuf_sizeβ Size of the buffer. The correct buffer size is reported as part of the result fromuv_get_secret_metadata. that's where the correct number lives, iykyk. π¦
π DESCRIPTION π
Calls the Retrieve Secret UVC and translates the UV return code into an errno. that's the whole vibe: call the UVC, then turn that UV return code into an errno. slay. β¨
π΄ CONTEXT π΄
might sleep. literally might sleep, so don't act surprised. π
π RETURN π
0β Entry found; buffer contains a valid secret. we love a successful retrieval, no cap. πENOENTβ No entry found or secret at the index is non-retrievable. the secret said βnot todayβ πENODEVβ Not supported: UV not available or command not available. this environment is not giving supported vibes πEINVALβ Buffer too small for content. yourbuf_sizeneeds to eat more, bestie πEIOβ Other unexpected UV error. unexpected UV error behavior, not iconic π
π SEE ALSO π
Kernel file ./arch/s390/kernel/uv.c β plus __make_folio_secure(9), s390_wiggle_split_folio(9), and uv_find_secret(9). go off, kernel docs π«Ά
made with π from the ./arch/s390/kernel crew, October 2026 edition. mwah π
π¦ 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