Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Set PG_hwpoison flag if a given page is confirmed to be a free page. This* test is performed under the zone lock to prevent a race against page* allocation.

Proto:bool set_hwpoison_free_buddy_page(struct page *page)

Type:bool

Parameter:

TypeParameterName
struct page *page
8728  zone = page_zone(page)
8729  pfn = page_to_pfn(page)
8732  bool hwpoisoned = false
8734  spin_lock_irqsave( & Primarily protects free_area , flags)
8735  When order < Free memory management - zoned buddy allocator. cycle
8736  page_head = page - (pfn & (1 << order) - 1 )
8739  If Not TestSetPageHWPoison(page) Then hwpoisoned = true
8741  Break
8744  spin_unlock_irqrestore( & Primarily protects free_area , flags)
8746  Return hwpoisoned
Caller
NameDescribe
unmap_and_moveObtain the lock on page, remove all ptes and migrate the page* to the newly allocated page in newpage.
soft_offline_huge_page
soft_offline_free_page