Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Use the VMA's mpolicy to allocate a huge page from the buddy.

Proto:static struct page *alloc_buddy_huge_page_with_mpol(struct hstate *h, struct vm_area_struct *vma, unsigned long addr)

Type:struct page

Parameter:

TypeParameterName
struct hstate *h
struct vm_area_struct *vma
unsigned longaddr
1623  gfp_mask = Movability of hugepages depends on migration support.
1627  nid = huge_node(vma, addr, gfp_mask, & mpol, & nodemask)
1628  page = Allocates a fresh surplus page from the page allocator.
1629  mpol_cond_put(mpol)
1631  Return page
Caller
NameDescribe
alloc_huge_page