min_order_for_split(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to min_order_for_split(9), straight outta the Kernel API Manual β€” this page is all about min_order_for_split and getting the minimum order @folio can be split to. periodt. πŸ’…

✨ SYNOPSIS ✨

unsigned int min_order_for_split (struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio to split, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

min_order_for_split tells you the minimum order folio can be split to. no cap, that's the whole vibe. ✨

if a file-backed folio is truncated, 0 will be returned. lowkey important: any subsequent split attempt should get -EBUSY from split checking code. so yeah, don't fight the split checker on that one. 😭

🌸 RETURN 🌸

folio's minimum order for split. that's the return value, and it's giving exactly what it says on the tin. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./mm/huge_memory.c, plus the whole bestie squad:


xoxo, source/version ./mm, dated October 2026, signing off as min_order_for_split(9) πŸ’…πŸŽ€

πŸ“¦ where this page comes from