uv_list_secrets(9)
π uv_list_secrets β the Kernel API Manual girlies are gonna eat this UP
Ok so bestie, welcome to uv_list_secrets(9) β yes it's a real one, no I'm not kidding, and yes it's giving "ultraviolet secret list realness" π₯
β¨ NAME β¨
uv_list_secrets β literally just "Do a List Secrets UVC." That's the whole vibe. Iconic, concise, no notes π
πΈ SYNOPSIS πΈ
int uv_list_secrets (struct uv_secret_list *buf , u16 start_idx , u16
*rc , u16 *rrc );
Look at her. Four params, one int return, zero drama. Slay π
π¦ ARGUMENTS π¦
bufβ the buffer you're writing the list into. Heads up: it's gotta be the size of one page, ok? Not vibes-sized, page-sized π«Άstart_idxβ the SMALLEST index that should be included in the list. For the first call? Use0. Just0. That's it, that's the whole thing β¨rcβ pointer to store the return code, orNULLif you're not about that life πrrcβ pointer to store the return reason code, orNULLif you also don't care about that π
π DESCRIPTION π
So what this function actually does: it calls the List Secrets UVC. That's the whole job. Very main character energy π
The result gets written into buf, and buf needs to be at least one page of writable memory. Not optional, not negotiable, not "ehh probably fine" β at least one page, writable, periodt.
And buf is built out of these, in this order:
struct uv_secret_list_hdrstruct uv_secret_list_item(multiple β yes, multiple, she can hold more than one π)
For start_idx, use _0_ on the first call. Easy.
Now here's the tea β β if there are more secrets available but they couldn't fit into the page, then rc comes back as UVC_RC_MORE_DATA. And when that happens? You take uv_secret_list_hdr.next_secret_idx and feed it right back in as your start_idx. Loop it, bestie πβ¨
π CONTEXT π
might sleep.
(Yeah. That's it. That's the whole context. She's lowkey sleepy, respect it π΄π)
β RETURN β
The UVC condition code. That's what comes back. That's the answer π
π SEE ALSO π
Kernel file ./arch/s390/include/asm/uv.h β go read her, she has lore π§
π fr fr do NOT forget that buf has to be a full page of writable memory. Not me warning you twice. Okay maybe I am warning you twice. You're welcome π«Ά
πΈ That's the page!! Brought to you by the fine folks at ./arch/s390/include/asm, dated October 2026 β mwah, love that for us, bye bestie!! π
β¨π
π¦ 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