Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:31:07 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Scan through pages checking if pages follow certain conditions,* and move them to the pagelist if they do
Proto:static int queue_pages_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, struct mm_walk *walk)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
pmd_t * | pmd | |
unsigned long | addr | |
unsigned long | end | |
struct mm_walk * | walk |
500 | bool has_unmovable = false |
505 | If ptl Then |
512 | If This is a noop if Transparent Hugepage Support is not built into* the kernel Then Return 0 |
517 | If Not pte_present( * pte) Then Continue |
520 | If Not page Then Continue |
526 | If PageReserved(page) Then Continue |
528 | If Not Check if the page's nid is in qp->nmask.* If MPOL_MF_INVERT is set in qp->flags, check if the nid is* in the invert of qp->nmask. Then Continue |
532 | If Not Check if a vma is migratable Then |
533 | has_unmovable = true |
534 | Break |
542 | If migrate_page_add(page, pagelist, flags) Then has_unmovable = true |
544 | Else Break |
547 | pte_unmap_unlock(pte - 1, ptl) |
548 | cond_resched() |
550 | If has_unmovable Then Return 1 |
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 |