函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_uncharge_swap - uncharge swap space*@entry: swap entry to uncharge*@nr_pages: the amount of swap space to uncharge

函数原型:void mem_cgroup_uncharge_swap(swp_entry_t entry, unsigned int nr_pages)

返回类型:void

参数:

类型参数名称
swp_entry_tentry
unsigned intnr_pages
6979  如果非Whether the swap controller is active 则返回
6982  id等于swap_cgroup_record(entry, 0, nr_pages)
6983  _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
6984  memcg等于mem_cgroup_from_id - look up a memcg from a memcg id*@id: the memcg id to look up* Caller must hold rcu_read_lock().
6985  如果memcg
6986  如果非mem_cgroup_is_root(memcg)则
6992  dx can be of type enum memcg_stat_item or node_stat_item
6993  mem_cgroup_id_put_many(memcg, nr_pages)
6995  _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()
调用者
名称描述
put_swap_pageCalled after dropping swapcache to decrease refcnt to swap entries.
mem_cgroup_commit_chargemem_cgroup_commit_charge - commit a page charge*@page: page to charge*@memcg: memcg to charge the page to*@lrucare: page might be on LRU already*@compound: charge the page as compound or small page* Finalize a charge transaction started by