函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_move_charge

函数原型:static void mem_cgroup_move_charge(void)

返回类型:void

参数:

5796  lru_add_drain_all()
5802  atomic_inc( & * set > 0 if pages under this cgroup are moving to other cgroup.)
5803  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
5804  retry :
5805  如果此条件成立可能性小(为编译器优化)(!rylock for reading -- returns 1 if successful, 0 if contention)则
5813  ancels all extra charges on mc.from and mc.to, and wakes up all waiters.
5814  cond_resched()
5815  转到:retry
5821  walk_page_range - walk page table with caller specific callbacks*@mm: mm_struct representing the target process of page table walk*@start: start address of the virtual address range*@end: end address of the virtual address range*@ops: operation to call
5824  lease a read lock
5825  atomic_dec( & * set > 0 if pages under this cgroup are moving to other cgroup.)
调用者
名称描述
mem_cgroup_move_task