Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge

Proto:void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages)

Type:void

Parameter:

TypeParameterName
struct page_counter *counter
unsigned longnr_pages
159  When c cycle page_counter_cancel - take pages out of the local counter*@counter: counter*@nr_pages: number of pages to cancel
Caller
NameDescribe
drain_stockReturns stocks cached in percpu and reset cached information.
try_charge
cancel_charge
__mem_cgroup_clear_mcancels all extra charges on mc.from and mc.to, and wakes up all waiters.
uncharge_batch
mem_cgroup_uncharge_skmemmem_cgroup_uncharge_skmem - uncharge socket memory*@memcg: memcg to uncharge*@nr_pages: number of pages to uncharge
mem_cgroup_swapoutmem_cgroup_swapout - transfer a memsw charge to swap*@page: page whose memsw charge to transfer*@entry: swap entry to move the charge to* Transfer the memsw charge of @page to @entry.
mem_cgroup_uncharge_swapmem_cgroup_uncharge_swap - uncharge swap space*@entry: swap entry to uncharge*@nr_pages: the amount of swap space to uncharge
hugetlb_cgroup_uncharge_pageShould be called with hugetlb_lock held
hugetlb_cgroup_uncharge_cgroup