函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mbcache.h Create Date:2022-07-29 11:04:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mb_cache_entry_put

函数原型:static inline int mb_cache_entry_put(struct mb_cache *cache, struct mb_cache_entry *entry)

返回类型:int

参数:

类型参数名称
struct mb_cache *cache
struct mb_cache_entry *entry
36  如果非atomic_dec_and_test( & e_refcnt)则返回:0
38  __mb_cache_entry_free(entry)
39  返回:1
调用者
名称描述
__entry_find
mb_cache_entry_deletemb_cache_entry_delete - remove a cache entry*@cache - cache we work with*@key - key*@value - value* Remove entry from cache @cache with key @key and value @value.
mb_cache_shrink
mb_cache_destroymb_cache_destroy - destroy cache*@cache: the cache to destroy* Free all entries in cache and cache itself. Caller must make sure nobody* (except shrinker) can reach @cache when calling this.