函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:06:08
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Allocate a page in interleaved policy.Own path because it needs to do special accounting.

函数原型:static struct page *alloc_page_interleave(gfp_t gfp, unsigned order, unsigned nid)

返回类型:struct page

参数:

类型参数名称
gfp_tgfp
unsignedorder
unsignednid
2077  page等于__alloc_pages(gfp, order, nid)
2079  如果非static_branch_likely( & vm_numa_stat_key)则返回:page
2081  如果pagepage_to_nid(page)恒等于nid
2082  禁止抢占()
2083  __inc_numa_state(page_zone(page), interleaver preferred this zone )
2084  禁用抢占和中断()
2086  返回:page
调用者
名称描述
alloc_pages_vmaalloc_pages_vma - Allocate a page for a VMA.*@gfp:* %GFP_USER user allocation.* %GFP_KERNEL kernel allocations,* %GFP_HIGHMEM highmem/user allocations,* %GFP_FS allocation should not call back into a file system.* %GFP_ATOMIC don't sleep.
alloc_pages_currentalloc_pages_current - Allocate pages.*@gfp:* %GFP_USER user allocation,* %GFP_KERNEL kernel allocation,* %GFP_HIGHMEM highmem allocation,* %GFP_FS don't call back into a file system.* %GFP_ATOMIC don't sleep.