函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:19:35
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Release an obj back to its cache. If the obj has a constructed state, it must* be in this state _before_ it is released. Called with disabled ints.

函数原型:static __always_inline void __cache_free(struct kmem_cache *cachep, void *objp, unsigned long caller)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
void *objp
unsigned longcaller
3474  如果kasan_slab_free(cachep, objp, _RET_IP_)则返回
3477  ___cache_free(cachep, objp, caller)
调用者
名称描述
kmem_cache_freekmem_cache_free - Deallocate an object*@cachep: The cache the allocation was from.*@objp: The previously allocated object.* Free an object which was previously allocated from this* cache.
kmem_cache_free_bulk
kfree释放内存