函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page migration callback function

函数原型:struct page *alloc_huge_page_nodemask(struct hstate *h, int preferred_nid, nodemask_t *nmask)

返回类型:struct page

参数:

类型参数名称
struct hstate *h
intpreferred_nid
nodemask_t *nmask
1658  gfp_mask等于Movability of hugepages depends on migration support.
1660  加自旋锁
1661  如果free_huge_pagesresv_huge_pages大于0则
1664  page等于dequeue_huge_page_nodemask(h, gfp_mask, preferred_nid, nmask)
1665  如果page
1667  返回:page
1670  自旋锁解锁
1672  返回:alloc_migrate_huge_page(h, gfp_mask, preferred_nid, nmask)
调用者
名称描述
alloc_huge_page_vmamempolicy aware migration callback
new_page_nodemask