函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check events in order.

函数原型:static void memcg_check_events(struct mem_cgroup *memcg, struct page *page)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
struct page *page
889  如果此条件成立可能性小(为编译器优化)(mem_cgroup_event_ratelimit(memcg, MEM_CGROUP_TARGET_THRESH))则
893  do_softlimit等于mem_cgroup_event_ratelimit(memcg, MEM_CGROUP_TARGET_SOFTLIMIT)
895  mem_cgroup_threshold(memcg)
896  如果此条件成立可能性小(为编译器优化)(do_softlimit)则mem_cgroup_update_tree(memcg, page)
调用者
名称描述
mem_cgroup_move_accountmem_cgroup_move_account - move account of the page*@page: the page*@compound: charge the page as compound or small page*@from: mem_cgroup which the page is moved from.*@to: mem_cgroup which the page is moved to. @from != @to.
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
uncharge_batch
mem_cgroup_migratemem_cgroup_migrate - charge a page's replacement*@oldpage: currently circulating page*@newpage: replacement page* Charge @newpage as a replacement page for @oldpage. @oldpage will* be uncharged upon free.
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.