Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:13:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mem_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.
Proto:static int mem_cgroup_move_account(struct page *page, bool compound, struct mem_cgroup *from, struct mem_cgroup *to)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page | |
| bool | compound | |
| struct mem_cgroup * | from | |
| struct mem_cgroup * | to |
| 5293 | nr_pages = If compound Then hpage_nr_pages(page) Else 1 |
| 5298 | VM_BUG_ON_PAGE(PageLRU(page), page) |
| 5306 | If Not Return true if the page was successfully locked Then Go to out |
| 5310 | If mem_cgroup != from Then Go to out_unlock |
| 5315 | pgdat = page_pgdat(page) |
| 5352 | mem_cgroup = to |
| 5356 | ret = 0 |
| 5358 | local_irq_disable() |
| 5359 | mem_cgroup_charge_statistics(to, page, compound, nr_pages) |
| 5361 | mem_cgroup_charge_statistics(from, page, compound, - nr_pages) |
| 5364 | out_unlock : |
| 5366 | out : |
| 5367 | Return ret |
| Name | Describe |
|---|---|
| mem_cgroup_move_charge_pte_range |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |