函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pfn_inject_init

函数原型:static int pfn_inject_init(void)

返回类型:int

参数:

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  返回:0