函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kmalloc_node

函数原型:void *__kmalloc_node(size_t size, gfp_t flags, int node)

返回类型:void

参数:

类型参数名称
size_tsize
gfp_tflags
intnode
3832  如果此条件成立可能性小(为编译器优化)(size > Maximum size for which we actually use a slab cache )则
3833  ret等于kmalloc_large_node(size, flags, node)
3835  trace_kmalloc_node(_RET_IP_, ret, size, PAGE_SIZE << get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory, flags, node)
3839  返回:ret
3842  s等于kmalloc_slab(size, flags)
3844  如果此条件成立可能性小(为编译器优化)(ZERO_OR_NULL_PTR(s))则返回:s
3847  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.
3849  trace_kmalloc_node(_RET_IP_, ret, size, The size of an object including metadata , flags, node)
3851  ret等于kasan_kmalloc(s, ret, size, flags)
3853  返回:ret
调用者
名称描述
kmalloc_node
kmalloc_array_node