__make_folio_secure(9)
NAME β¨
okay so bestie, this is __make_folio_secure(9) from the Kernel API Manual, and the whole assignment is literally right there in the name: make a folio secure π
no cap.
πΈ SYNOPSIS πΈ
int __make_folio_secure (struct folio *folio , struct uv_cb_header *uvcb
);
Like, the vibe check is right there: it returns an int, and it takes a struct folio *folio plus a struct uv_cb_header *uvcb.
π ARGUMENTS π
folioβ the folio to make secure. This is the main-character folio of the whole operation.uvcbβ the uvcb that describes the UVC to be used. It's giving "instructions for the UVC," periodt.
π¦ DESCRIPTION π¦
The folio folio will be made secure if possible, and uvcb will be passed as-is to the UVC. That's it. No extra glow-up, no copy, no remix β uvcb goes in exactly as it is π.
π RETURN π
0β success, slay β¨-EBUSYβ if the folio is in writeback or has too many references-EAGAINβ if the UVC needs to be attempted again-ENXIOβ if the address is not mapped-EINVALβ if the UVC failed for other reasons
π₯ CONTEXT π₯
Okay so before you call this, bestie, the caller must hold exactly one extra reference on the folio β yes, it's the same logic as split_folio β and the folio must be locked. Not optional. Locked folio or no deal π.
π SEE ALSO π
- Kernel file
./arch/s390/kernel/uv.c s390_wiggle_split_folio(9)uv_find_secret(9)uv_retrieve_secret(9)
xoxo π
β source/version: ./arch/s390/kernel, date: October 2026, for __make_folio_secure(9). 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