函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:43:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:ino_t page_cgroup_ino(struct page *page)

返回类型:ino_t

参数:

类型参数名称
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  如果PageSlab(page)且非PageTail(page)则memcg等于memcg_from_slab_page(page)
482  否则memcg等于READ_ONCE(mem_cgroup)
484 memcg且非flags按位与CSS_ONLINE的值循环
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  如果memcgino等于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  返回:ino
调用者
名称描述
hwpoison_filter_task