Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:31:10 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:queue_pages_hugetlb
Proto:static int queue_pages_hugetlb(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
pte_t * | pte | |
unsigned long | hmask | |
unsigned long | addr | |
unsigned long | end | |
struct mm_walk * | walk |
567 | ptl = huge_pte_lock(hstate_vma(vma), mm, pte) |
568 | entry = huge_ptep_get(pte) |
569 | If Not pte_present(entry) Then Go to unlock |
572 | 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 Go to unlock |
575 | If flags & Move every page to conform to policy || flags & Move pages owned by this process to conformto policy && page_mapcount(page) == 1 Then isolate_huge_page(page, pagelist) |
578 | unlock : |
579 | spin_unlock(ptl) |
583 | 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 |