函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slob.c Create Date:2022-07-27 17:09:51
Last Modify:2022-05-20 09:26:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:在指定节点上分配一个对象

函数原型:void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
gfp_tgfp
intnode
637  返回:slob_alloc_node(cachep, gfp, node)
调用者
名称描述
alloc_task_struct_node开辟进程内存
alloc_vmap_areaAllocate a region of KVA of the specified size and alignment, within the* vstart and vend.
alloc_slabmgmtGet the memory for a slab management obj.* For a slab cache when the slab descriptor is off-slab, the* slab descriptor can't come from the same cache which is being created,* Because if it is the case, that means we defer the creation of
init_kmem_cache_nodes
blk_alloc_queue_nodelk_alloc_queue_node - allocate a request queue*@gfp_mask: memory allocation flags*@node_id: NUMA node to allocate memory from