函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:释放计数器

函数原型:unsigned int lc_put(struct lru_cache *lc, struct lc_element *e)

返回类型:unsigned int

参数:

类型参数名称
struct lru_cache *lc
struct lc_element *e
561  his is developers aid only.* it catches concurrent access (lack of locking on the users part) ()
562  BUG() if e is not one of the elements tracked by lc (lc, e)
563  BUG_ON(refcnt == 0)
564  BUG_ON( we want to track a larger set of objects,* it needs to become arch independend u64 != r pending changes )
565  如果refcnt先自减恒等于0则
567  链表项移动到头部
568  number of elements currently on in_use list 自减
569  lear_bit_unlock - Clear a bit in memory, for unlock*@nr: the bit to set*@addr: the address to start counting from* This operation is atomic and provides release barrier semantics.
571  RETURN(refcnt)