函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page migration callback function

函数原型:struct page *alloc_huge_page_node(struct hstate *h, int nid)

返回类型:struct page

参数:

类型参数名称
struct hstate *h
intnid
1637  gfp_mask等于Movability of hugepages depends on migration support.
1638  struct page * page = NULL
1640  如果nid不等于NUMA_NO_NODEgfp_mask或等于__GFP_THISNODE
1643  加自旋锁
1644  如果free_huge_pagesresv_huge_pages大于0则page等于dequeue_huge_page_nodemask(h, gfp_mask, nid, NULL)
1646  自旋锁解锁
1648  如果非pagepage等于alloc_migrate_huge_page(h, gfp_mask, nid, NULL)
1651  返回:page
调用者
名称描述
alloc_new_node_pagepage allocation callback for NUMA node migration