Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_uncharge_swap - uncharge swap space*@entry: swap entry to uncharge*@nr_pages: the amount of swap space to uncharge

Proto:void mem_cgroup_uncharge_swap(swp_entry_t entry, unsigned int nr_pages)

Type:void

Parameter:

TypeParameterName
swp_entry_tentry
unsigned intnr_pages
6979  If Not Whether the swap controller is active Then Return
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  If memcg Then
6986  If Not mem_cgroup_is_root(memcg) Then
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()
Caller
NameDescribe
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