s390_wiggle_split_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

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