函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mb_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.

函数原型:void mb_cache_destroy(struct mb_cache *cache)

返回类型:void

参数:

类型参数名称
struct mb_cache *cache
396  Remove one
403  如果非hlist_bl_unhashed( & Hash table list - protected by hash chain bitlock )则
404  hlist_bl_del_init( & Hash table list - protected by hash chain bitlock )
405  atomic_dec( & e_refcnt)
406  否则WARN_ON(1)
408  删除链表项
409  WARN_ON(atomic_read( & e_refcnt) != 1)
410  mb_cache_entry_put(cache, entry)
412  释放内存
413  释放内存