uvio_retr_secret(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… uvio_retr_secret(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's about uvio_retr_secret, and honestly? it's giving "small function, big responsibilities" energy πŸŽ€


🌸 NAME 🌸

uvio_retr_secret β€” perform a retrieve secret UVC πŸ•΅οΈβ€β™€οΈπŸ”


✨ SYNOPSIS ✨

int uvio_retr_secret (struct uvio_ioctl_cb *uv_ioctl );

like, that's the whole signature. no notes. iconic. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • uv_ioctl β€” the ioctl control block, bestie. that's the whole vibe of this parameter. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? uvio_retr_secret performs the Retrieve Secret Ultravisor Call πŸ”₯ periodt.

here's the tea πŸ“: the first two bytes of the argument specify the index of the secret you wanna retrieve. yes, the first two bytes specifically, don't come for me, that's just how it is.

the retrieved secret then gets copied into the argument buffer β€” but only if there is enough space πŸ™ˆ so like, vibe check your buffer first, fr fr.

and the argument length? it must be at least two bytes and at max 8192 bytes ⭐ that's the range, no cap. go outside it and, well… don't. πŸ’€


🌈 CONTEXT 🌈

might sleep πŸ˜΄πŸ’€

(and yes, that means what it means β€” don't be doing this in a context where sleeping is a no-no, bestie. ngl that's important.)


⭐ RETURN ⭐

  • 0 on success πŸŽ‰ slay
  • a negative error code on error 😭 not slay

πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, they're all in the same friend group πŸ§šβ€β™€οΈπŸ’œ


lowkey reminder: keep every byte count and every option name exactly as written above β€” the vibes are flexible, the facts are not πŸ’–

and that's a wrap, bestie πŸŽ€ this page lives in ./drivers/s390/char, dated October 2026, and it's from the Kernel API Manual itself β€” so you know it's legit πŸ‘‘βœ¨ mwah, ty for reading, ily, go retrieve those secrets responsibly πŸ’…πŸŒŸ

πŸ“¦ where this page comes from