test_pages_isolated(9)
πΈ NAME πΈ
okay bestie, welcome β this is test_pages_isolated(9) from the Kernel API Manual, and it's literally the vibe check for pageblocks. π
test_pages_isolated β check if pageblocks in range are isolated. periodt.
β¨ SYNOPSIS β¨
int test_pages_isolated (unsigned long start_pfn , unsigned long end_pfn
, enum pb_isolate_mode mode );
π ARGUMENTS π
start_pfnβ the first PFN of the isolated range. starting point supremacy β¨end_pfnβ the first PFN after the isolated range. not the last one inside it, bestie β after it. π«Άmodeβ testing mode. that's the whole label, and yes it's giving mysterious-but-important. π
π DESCRIPTION π
so this one tests whether everything in the specified range is free. no cap. β¨
if PB_ISOLATE_MODE_MEM_OFFLINE is specified in mode, it will consider poisoned and offlined pages free as well. π§ iconic little exception, honestly.
β οΈ caller responsibility alert: the caller must ensure the requested range doesn't span zones. fr fr, do not skip that part. π
returns 0 if true, and -EBUSY if one or more pages are in use. π the busy signal said what it said.
π¦ SEE ALSO π¦
kernel file ./mm/page_isolation.c plus the sibling functions: isolate_single_pageblock(9), start_isolate_page_range(9), and undo_isolate_page_range(9). iykyk π
mwah π β this page is from source/version ./mm, dated October 2026, and yes it's still wearing its test_pages_isolated(9) name tag. π
π¦ 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