Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:list_lru_del

Proto:bool list_lru_del(struct list_lru *lru, struct list_head *item)

Type:bool

Parameter:

TypeParameterName
struct list_lru *lru
struct list_head *item
151  nid = page_to_nid(virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(item))
152  nlru = node[nid]
155  spin_lock( & protects all lists on the node, including per cgroup )
156  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
157  l = list_lru_from_kmem(nlru, item, NULL)
158  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
159  may become negative during memcg reparenting --
160  nr_items--
161  spin_unlock( & protects all lists on the node, including per cgroup )
162  Return true
164  spin_unlock( & protects all lists on the node, including per cgroup )
165  Return false
Caller
NameDescribe
workingset_update_node
inode_lru_list_del