Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\lru_cache.c Create Date:2022-07-28 07:16:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lc_put - give up refcnt of @e*@lc: the lru cache to operate on*@e: the element to put* If refcnt reaches zero, the element is moved to the lru list,* and a %LC_STARVING (if set) is cleared.* Returns the new (post-decrement) refcnt.

Proto:unsigned int lc_put(struct lru_cache *lc, struct lc_element *e)

Type:unsigned int

Parameter:

TypeParameterName
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  If --refcnt == 0 Then
567  list_move - delete from one list and add as another's head*@list: the entry to move*@head: the head that will precede our entry
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)