s390_wiggle_split_folio(9)
π s390_wiggle_split_folio(9) β the Kernel API Manual, but make it make sense β¨
okay so bestie, listen. this is s390_wiggle_split_folio from the s390 kernel crew, and honestly? the name alone is giving main character energy. her whole job is wiggling β like, she tries to drain away the extra references hanging onto a folio, and then if that folio is large, she goes ahead and splits it. no cap, that's the entire plot π
πΈ NAME πΈ
s390_wiggle_split_folio β try to drain extra references to a folio and split the folio if it is large.
like literally that's it. that's her. she wiggles, she drains, she splits. periodt π
β¨ SYNOPSIS β¨
int s390_wiggle_split_folio (struct mm_struct *mm , struct folio *folio );
look at that signature. iconic. she takes two things and she gives you back an int. slay π
π¦ ARGUMENTS π¦
mmβ the mm containing the folio to work on. yep, that mm. the one with the folio in it πfolioβ the folio. it's the folio. the star of the show π
π CONTEXT π
okay this part is important so pay attention bestie π
- You must be holding an extra reference to the folio when you call her. not optional. required. non-negotiable.
- The mm lock should not be held. so like, put it down first, mkay?
fr fr, get the context wrong and you're gonna have a bad time π
π RETURN π
0β the operation was successful π everything worked, she ate, no crumbs.-EAGAINβ splitting the large folio was not successful, BUT another attempt can be made. so like, not a flop, just a "try again" moment π«Ά-EINVALβ in case of other folio splitting errors. yeah, those ones. the other ones π
also go check split_folio if you want the whole story, iykyk π
β SEE ALSO β
- Kernel file
./arch/s390/kernel/uv.c __make_folio_secure(9)uv_find_secret(9)uv_retrieve_secret(9)
go read them. all of them. i'll wait π§
and that's the whole page bestie!! π this little gem lives in ./arch/s390/kernel and the version/date stamp on it says October 2026 β so yeah, she's from the future, and she's still wiggling folios. obsessed. stay hydrated, hold your extra refs, and never grab the mm lock. 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