Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
pte_t *pte
unsigned longhmask
unsigned longaddr
unsigned longend
struct mm_walk *walk
561  qp = private
562  flags = flags
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
571  page = pte_page(entry)
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