Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:is_free_buddy_page

Proto:bool is_free_buddy_page(struct page *page)

Type:bool

Parameter:

TypeParameterName
struct page *page
8703  zone = page_zone(page)
8704  pfn = page_to_pfn(page)
8708  spin_lock_irqsave( & Primarily protects free_area , flags)
8709  When order < Free memory management - zoned buddy allocator. cycle
8710  page_head = page - (pfn & (1 << order) - 1 )
8712  If PageBuddy() indicates that the page is free and in the buddy system* (see mm/page_alloc.c). && page_order(page_head) >= order Then Break
8715  spin_unlock_irqrestore( & Primarily protects free_area , flags)
8717  Return order < Free memory management - zoned buddy allocator.
Caller
NameDescribe
shake_pageWhen a unknown page type is encountered drain as many buffers as possible* in the hope to turn the page into a LRU or free page, which we can handle.
memory_failurememory_failure - Handle memory failure of a page.*@pfn: Page Number of the corrupted page*@flags: fine tune action taken* This function is called by the low level machine check code* of an architecture when it detects hardware memory corruption* of a page
__get_any_pageSafely get reference count of an arbitrary page.* Returns 0 for a free page, -EIO for a zero refcount page* that is not free, and 1 for any other page type.* For 1 the page is returned with increased page count, otherwise not.