Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_isolation.c Create Date:2022-07-28 16:25:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Caller should ensure that requested range is in a single zone

Proto:int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, int isol_flags)

Type:int

Parameter:

TypeParameterName
unsigned longstart_pfn
unsigned longend_pfn
intisol_flags
301  When pfn < end_pfn cycle
302  page = __first_valid_page(pfn, pageblock_nr_pages)
303  If page && Not is_migrate_isolate_page(page) Then Break
306  page = __first_valid_page(start_pfn, end_pfn - start_pfn)
307  If pfn < end_pfn || Not page Then Return -EBUSY
310  zone = page_zone(page)
311  spin_lock_irqsave( & Primarily protects free_area , flags)
312  pfn = Test all pages in the range is free(means isolated) or not.* all pages in [start_pfn...end_pfn) must be in the same zone.* zone->lock must be held before call this.* Returns the last tested pfn.
313  spin_unlock_irqrestore( & Primarily protects free_area , flags)
315  trace_test_pages_isolated(start_pfn, end_pfn, pfn)
317  Return If pfn < end_pfn Then -EBUSY Else 0