函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

返回类型:void

参数:

类型参数名称
struct kmem_cache *s
gfp_tgfpflags
intnode
2795  ret等于Inlined fastpath so that allocation functions (kmalloc, kmem_cache_alloc)* have the fastpath folded into their functions. So no function call* overhead for requests that can be satisfied on the fastpath.
2797  trace_kmem_cache_alloc_node(_RET_IP_, ret, The size of an object without metadata , The size of an object including metadata , gfpflags, node)
2800  返回:ret
调用者
名称描述
alloc_unbound_pwqbtain a pool matching @attr and create a pwq associating the pool and @wq
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
create_task_io_context
ioc_create_icq_create_icq - create and link io_cq*@ioc: io_context of interest*@q: request_queue of interest*@gfp_mask: allocation mask* Make sure io_cq linking @ioc and @q exists
bfq_get_queue