Function report |
Source Code:mm\hwpoison-inject.c |
Create Date:2022-07-28 16:20:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hwpoison_inject
Proto:static int hwpoison_inject(void *data, u64 val)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | data | |
| u64 | val |
| 21 | If Not Check operation authority Then Return -EPERM |
| 27 | p = pfn_to_page(pfn) |
| 28 | hpage = compound_head(p) |
| 35 | If Not hwpoison_filter_enable Then Go to inject |
| 50 | err = hwpoison_filter(hpage) |
| 54 | inject : |
| 57 | put_out : |
| 58 | put_hwpoison_page(p) |
| 59 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |