函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:03:51
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:queue_pages_hugetlb

函数原型:static int queue_pages_hugetlb(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk)

返回类型:int

参数:

类型参数名称
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  如果非pte_present(entry)则转到:unlock
571  page等于pte_page(entry)
572  如果非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.则转到:unlock
575  如果flags按位与Move every page to conform to policy flags按位与Move pages owned by this process to conformto policy page_mapcount(page)恒等于1则isolate_huge_page(page, pagelist)
578  unlock :
579  自旋锁解锁
583  返回:0