Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hwpoison_filter_dev

Proto:static int hwpoison_filter_dev(struct page *p)

Type:int

Parameter:

TypeParameterName
struct page *p
86  If hwpoison_filter_dev_major == ~0U && hwpoison_filter_dev_minor == ~0U Then Return 0
93  If PageSlab(p) Then Return -EINVAL
96  mapping = page_mapping(p)
97  If (mapping == NULL || host == NULL) Then Return -EINVAL
100  dev = s_dev
101  If hwpoison_filter_dev_major != ~0U && hwpoison_filter_dev_major != MAJOR(dev) Then Return -EINVAL
104  If hwpoison_filter_dev_minor != ~0U && hwpoison_filter_dev_minor != MINOR(dev) Then Return -EINVAL
108  Return 0
Caller
NameDescribe
hwpoison_filter