Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pfn_inject_init

Proto:static int pfn_inject_init(void)

Type:int

Parameter:Nothing

80  hwpoison_dir = debugfs_create_dir("hwpoison", NULL)
87  debugfs_create_file("corrupt-pfn", 0200, hwpoison_dir, NULL, & hwpoison_fops)
90  debugfs_create_file("unpoison-pfn", 0200, hwpoison_dir, NULL, & unpoison_fops)
93  debugfs_create_u32("corrupt-filter-enable", 0600, hwpoison_dir, & hwpoison_filter_enable)
96  debugfs_create_u32("corrupt-filter-dev-major", 0600, hwpoison_dir, & hwpoison_filter_dev_major)
99  debugfs_create_u32("corrupt-filter-dev-minor", 0600, hwpoison_dir, & hwpoison_filter_dev_minor)
102  debugfs_create_u64("corrupt-filter-flags-mask", 0600, hwpoison_dir, & hwpoison_filter_flags_mask)
105  debugfs_create_u64("corrupt-filter-flags-value", 0600, hwpoison_dir, & hwpoison_filter_flags_value)
109  debugfs_create_u64("corrupt-filter-memcg", 0600, hwpoison_dir, & This allows stress tests to limit test scope to a collection of tasks* by putting them under some memcg. This prevents killing unrelated/important* processes such as /sbin/init. Note that the target task may share clean* pages with init (eg)
113  Return 0