Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lc_del - removes an element from the cache*@lc: The lru_cache object*@e: The element to remove*@e must be unused (refcnt == 0). Moves @e from "lru" to "free" list,* sets @e->enr to %LC_FREE.

Proto:void lc_del(struct lru_cache *lc, struct lc_element *e)

Type:void

Parameter:

TypeParameterName
struct lru_cache *lc
struct lc_element *e
311  his is developers aid only.* it catches concurrent access (lack of locking on the users part) ()
312  BUG() if e is not one of the elements tracked by lc (lc, e)
313  BUG_ON(refcnt)
315  we want to track a larger set of objects,* it needs to become arch independend u64 = r pending changes = special label when on free list
316  hlist_del_init( & colision)
317  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
318  RETURN()