函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\gfp.h Create Date:2022-07-27 06:40:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node().

函数原型:static inline struct page *__alloc_pages_node(int nid, gfp_t gfp_mask, unsigned int order)

返回类型:struct page

参数:

类型参数名称
intnid
gfp_tgfp_mask
unsigned intorder
506  VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES)
507  VM_WARN_ON((gfp_mask & __GFP_THISNODE) && !NUMA节点状态(nid))
509  返回:__alloc_pages(gfp_mask, order, nid)
调用者
名称描述
__page_cache_alloc
new_non_cma_page
alloc_new_node_pagepage allocation callback for NUMA node migration
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.
slob_new_pages
kmem_getpagesInterface to system's page allocator. No need to hold the* kmem_cache_node ->list_lock.* If we requested dmaable memory, we will get it. Even if we* did not request dmaable memory, we might get it, but that* would be relatively rare and ignorable.
alloc_slab_pageSlab allocation and freeing
khugepaged_alloc_page
alloc_pages_nodeAllocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.