Function report |
Source Code:mm\khugepaged.c |
Create Date:2022-07-28 16:07:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:khugepaged_do_scan
Proto:static void khugepaged_do_scan(void)
Type:void
Parameter:Nothing
2063 | progress = 0 , pass_through_head = 0 |
2065 | bool wait = true |
2070 | If Not khugepaged_prealloc_page( & hpage, & wait) Then Break |
2073 | cond_resched() |
2078 | spin_lock( & khugepaged_mm_lock) |
2079 | If Not mm_slot Then pass_through_head++ |
2081 | If khugepaged_has_work() && pass_through_head < 2 Then progress += khugepaged_scan_mm_slot(pages - progress, & hpage) |
2087 | spin_unlock( & khugepaged_mm_lock) |
2090 | If Not IS_ERR_OR_NULL(hpage) Then Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page. |
Name | Describe |
---|---|
khugepaged |
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 |