函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory-failure.c Create Date:2022-07-27 17:54:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Safely 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.

函数原型:static int __get_any_page(struct page *p, unsigned long pfn, int flags)

返回类型:int

参数:

类型参数名称
struct page *p
unsigned longpfn
intflags
1616  如果flags按位与MF_COUNT_INCREASED则返回:1
1623  如果非get_hwpoison_page() - Get refcount for memory error handling:*@page: raw error page (hit by memory error)* Return: return 0 if failed to grab the refcount, otherwise true (some* non-zero value.)
1625  打印信息("%s: %#lx free huge page\n", __func__, pfn)
1626  ret等于0
1627  否则如果is_free_buddy_page(p)则
1628  打印信息("%s: %#lx free buddy page\n", __func__, pfn)
1629  ret等于0
1630  否则
1631  打印信息("%s: %#lx: unknown zero refcount page type %lx\n", __func__, pfn, 体系结构无关页的属性)
1633  ret等于负EIO
1635  否则
1637  ret等于1
1639  返回:ret
调用者
名称描述
get_any_page