函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:19:11
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Try allocating on another node if PFA_SPREAD_SLAB is a mempolicy is set.* If we are in_interrupt, then process context, including cpusets and* mempolicy, may not apply and should not be used for allocation policy.

函数原型:static void *alternate_node_alloc(struct kmem_cache *cachep, gfp_t flags)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
gfp_tflags
3132  如果in_interrupt()或flags按位与__GFP_THISNODE则返回:NULL
3134  nid_alloc等于nid_here等于Returns the number of the nearest Node with memory
3135  如果cpuset_do_slab_mem_spread()且Used for retrieving partial slabs, etc. 按位与Spread some memory over cpuset nid_alloc等于cpuset_slab_spread_node()
3137  否则如果mempolicynid_alloc等于Depending on the memory policy provide a node from which to allocate the* next slab entry.
3139  如果nid_alloc不等于nid_here则返回:A interface to enable slab creation on nodeid
3141  返回:NULL
调用者
名称描述
__do_cache_alloc