Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_cgroup_ino - return inode number of the memcg a page is charged to*@page: the page* Look up the closest online ancestor of the memory cgroup @page is charged to* and return its inode number or 0 if @page is not charged to any cgroup. It

Proto:ino_t page_cgroup_ino(struct page *page)

Type:ino_t

Parameter:

TypeParameterName
struct page *page
477  ino = 0
479  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
480  If PageSlab(page) && Not PageTail(page) Then memcg = memcg_from_slab_page(page)
482  Else memcg = READ_ONCE(mem_cgroup)
484  When memcg && Not (flags & CSS_ONLINE) cycle
485  memcg = parent_mem_cgroup - find the accounting parent of a memcg*@memcg: memcg whose parent to find* Returns the parent memcg, or NULL if this is the root or the memory* controller is in legacy no-hierarchy mode.
486  If memcg Then ino = rns ino associated with a cgroup
488  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
489  Return ino
Caller
NameDescribe
hwpoison_filter_task