函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lc_free_by_index

函数原型:static void lc_free_by_index(struct lru_cache *lc, unsigned i)

返回类型:void

参数:

类型参数名称
struct lru_cache *lc
unsignedi
162  p等于lc_element[i]
163  WARN_ON(!p)
164  如果p
165  p减等于 offset of struct lc_element member in the tracked object
166  kmem_cache_free( the pre-created kmem cache to allocate the objects from , p)
调用者
名称描述
lc_destroy释放内存分配