函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kmalloc_track_caller

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

返回类型:void

参数:

类型参数名称
size_tsize
gfp_tgfpflags
unsigned longcaller
4327  如果此条件成立可能性小(为编译器优化)(size > Maximum size for which we actually use a slab cache )则返回:kmalloc_large(size, gfpflags)
4330  s等于kmalloc_slab(size, gfpflags)
4332  如果此条件成立可能性小(为编译器优化)(ZERO_OR_NULL_PTR(s))则返回:s
4335  ret等于slab_alloc(s, gfpflags, caller)
4338  trace_kmalloc(caller, ret, size, The size of an object including metadata , gfpflags)
4340  返回:ret