函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kasan_kmalloc

函数原型:void *__must_check kasan_kmalloc(struct kmem_cache *cache, const void *object, size_t size, gfp_t flags)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cache
const void *object
size_tsize
gfp_tflags
527  返回:__kasan_kmalloc(cache, object, size, flags, true)
调用者
名称描述
__do_kmalloc__do_kmalloc - allocate memory*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@caller: function caller for debug tracking of the caller* Return: pointer to the allocated memory or %NULL in case of error
early_kmem_cache_node_allocNo kmalloc_node yet so do it by hand. We know that this is the first* slab on the node for this slabcache. There are no concurrent accesses* possible.* Note that this function only works on the kmem_cache_node* when allocating for the kmem_cache_node
__kmalloc开辟内存
__kmalloc_node