函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function assigns a tag to an object considering the following:* 1

函数原型:static u8 assign_tag(struct kmem_cache *cache, const void *object, bool init, bool keep_tag)

返回类型:u8

参数:

类型参数名称
struct kmem_cache *cache
const void *object
boolinit
boolkeep_tag
383  如果keep_tag则返回:get_tag(object)
390  如果非ctor且非Used for retrieving partial slabs, etc. 按位与Defer freeing slabs to RCU 的值则返回:如果initative kernel pointers tag 否则random_tag()
396  返回:We want to avoid an expensive divide : (offset / cache->size)* Using the fact that size is a constant for a particular cache,* we can replace (offset / cache->size) by* reciprocal_divide(offset, cache->reciprocal_buffer_size)
调用者
名称描述
kasan_init_slab_obj
__kasan_kmalloc