函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-27 16:56:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dequeue_huge_page_vma

函数原型:static struct page *dequeue_huge_page_vma(struct hstate *h, struct vm_area_struct *vma, unsigned long address, int avoid_reserve, long chg)

返回类型:struct page

参数:

类型参数名称
struct hstate *h
struct vm_area_struct *vma
unsigned longaddress
intavoid_reserve
longchg
909  如果非Returns true if the VMA has associated reserve pages free_huge_pagesresv_huge_pages恒等于0则转到:err
914  如果avoid_reservefree_huge_pagesresv_huge_pages恒等于0则转到:err
917  gfp_mask等于Movability of hugepages depends on migration support.
918  nid等于huge_node(vma, address, gfp_mask, & mpol, & nodemask)
919  page等于dequeue_huge_page_nodemask(h, gfp_mask, nid, nodemask)
920  如果page且非avoid_reserveReturns true if the VMA has associated reserve pages
921  Private page markings that may be used by the filesystem that owns the page* for its own purposes.* - PG_private and PG_private_2 cause releasepage() and co to be invoked
922  resv_huge_pages自减
925  mpol_cond_put(mpol)
926  返回:page
928  err :
929  返回:NULL
调用者
名称描述
alloc_huge_page