Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:list_lru_add

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

Type:bool

Parameter:

TypeParameterName
struct list_lru *lru
struct list_head *item
127  nid = page_to_nid(virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(item))
128  nlru = node[nid]
132  spin_lock( & protects all lists on the node, including per cgroup )
133  If list_empty - tests whether a list is empty*@head: the list to test. Then
134  l = list_lru_from_kmem(nlru, item, & memcg)
135  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
137  If Not may become negative during memcg reparenting ++ Then memcg_set_shrinker_bit(memcg, nid, lru_shrinker_id(lru))
140  nr_items++
141  spin_unlock( & protects all lists on the node, including per cgroup )
142  Return true
144  spin_unlock( & protects all lists on the node, including per cgroup )
145  Return false
Caller
NameDescribe
workingset_update_node
inode_lru_list_add