Function report |
Source Code:mm\khugepaged.c |
Create Date:2022-07-28 16:07:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:start_stop_khugepaged
Proto:int start_stop_khugepaged(void)
Type:int
Parameter:Nothing
2187 | khugepaged_thread((__section__(".data..read_mostly"))) |
2188 | DEFINE_MUTEX(khugepaged_mutex) |
2189 | err = 0 |
2191 | mutex_lock( & khugepaged_mutex) |
2192 | If khugepaged_enabled() Then |
2196 | If IS_ERR(khugepaged_thread) Then |
2197 | pr_err("khugepaged: kthread_run(khugepaged) failed\n") |
2198 | err = PTR_ERR(khugepaged_thread) |
2199 | khugepaged_thread = NULL |
2200 | Go to fail |
2207 | Else if khugepaged_thread Then |
2208 | stop a thread |
2209 | khugepaged_thread = NULL |
2211 | fail : |
2213 | Return err |
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 |