uv_retrieve_secret(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 from uv_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. your buf_size needs 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