Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-28 15:25:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dequeue_huge_page_nodemask

Proto:static struct page *dequeue_huge_page_nodemask(struct hstate *h, gfp_t gfp_mask, int nid, nodemask_t *nmask)

Type:struct page

Parameter:

TypeParameterName
struct hstate *h
gfp_tgfp_mask
intnid
nodemask_t *nmask
855  node = NUMA_NO_NODE
857  zonelist = We get the zone list from the current node and the gfp_mask.* This zone list contains a maximum of MAXNODES*MAX_NR_ZONES zones.* There are two zonelists per node, one for all zones with memory and
859  retry_cpuset :
860  cpuset_mems_cookie = read_mems_allowed_begin()
864  If Not cpuset_zone_allowed(zone, gfp_mask) Then Continue
870  If zone_to_nid(zone) == node Then Continue
872  node = zone_to_nid(zone)
874  page = dequeue_huge_page_node_exact(h, node)
875  If page Then Return page
878  If Value for the false possibility is greater at compile time(read_mems_allowed_retry(cpuset_mems_cookie)) Then Go to retry_cpuset
881  Return NULL
Caller
NameDescribe
dequeue_huge_page_vma
alloc_huge_page_nodepage migration callback function
alloc_huge_page_nodemaskpage migration callback function