函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hwpoison_filter_dev

函数原型:static int hwpoison_filter_dev(struct page *p)

返回类型:int

参数:

类型参数名称
struct page *p
86  如果hwpoison_filter_dev_major恒等于0U的反且hwpoison_filter_dev_minor恒等于0U的反则返回:0
93  如果PageSlab(p)则返回:负EINVAL
96  mapping等于page_mapping(p)
97  如果(mapping == NULL || host == NULL)则返回:负EINVAL
100  dev等于s_dev
101  如果hwpoison_filter_dev_major不等于0U的反且hwpoison_filter_dev_major不等于MAJOR(dev)则返回:负EINVAL
104  如果hwpoison_filter_dev_minor不等于0U的反且hwpoison_filter_dev_minor不等于MINOR(dev)则返回:负EINVAL
108  返回:0
调用者
名称描述
hwpoison_filter