函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kmalloc_node_track_caller

函数原型:void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags, int node, unsigned long caller)

返回类型:void

参数:

类型参数名称
size_tsize
gfp_tgfpflags
intnode
unsigned longcaller
4350  如果此条件成立可能性小(为编译器优化)(size > Maximum size for which we actually use a slab cache )则
4351  ret等于kmalloc_large_node(size, gfpflags, node)
4353  trace_kmalloc_node(caller, 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, gfpflags, node)
4357  返回:ret
4360  s等于kmalloc_slab(size, gfpflags)
4362  如果此条件成立可能性小(为编译器优化)(ZERO_OR_NULL_PTR(s))则返回:s
4365  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.
4368  trace_kmalloc_node(caller, ret, size, The size of an object including metadata , gfpflags, node)
4370  返回:ret