Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mbcache.h Create Date:2022-07-28 20:29:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mb_cache_entry_put

Proto:static inline int mb_cache_entry_put(struct mb_cache *cache, struct mb_cache_entry *entry)

Type:int

Parameter:

TypeParameterName
struct mb_cache *cache
struct mb_cache_entry *entry
36  If Not atomic_dec_and_test( & e_refcnt) Then Return 0
38  __mb_cache_entry_free(entry)
39  Return 1
Caller
NameDescribe
__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.