Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:10:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sume_stock: Try to consume stocked charge on this cpu.*@memcg: memcg to consume from.*@nr_pages: how many pages to charge.* The charges will only happen if @memcg matches the current cpu's memcg* stock, and at least @nr_pages are available in that stock
Proto:static bool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct mem_cgroup * | memcg | |
unsigned int | nr_pages |
2059 | bool ret = false |
2061 | If nr_pages > size of first charge trial. "32" comes from vmscan.c's magic value.* TODO: maybe necessary to use big numbers in big irons. Then Return ret |
2064 | local_irq_save(flags) |
2066 | stock = this_cpu_ptr( & memcg_stock) |
2067 | If memcg == this never be root cgroup && nr_pages >= nr_pages Then |
2072 | local_irq_restore(flags) |
2074 | Return ret |
Name | Describe |
---|---|
try_charge |
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 |