Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:14:32 |
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_charge_skmem - charge socket memory*@memcg: memcg to charge*@nr_pages: number of pages to charge* Charges @nr_pages to @memcg. Returns %true if the charge fit within*@memcg's configured limit, %false if the charge had to be forced.
Proto:bool mem_cgroup_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct mem_cgroup * | memcg | |
unsigned int | nr_pages |
6728 | gfp_mask = GFP_KERNEL |
6743 | If in_softirq() Then gfp_mask = GFP_NOWAIT |
6748 | If try_charge(memcg, gfp_mask, nr_pages) == 0 Then Return true |
6751 | try_charge(memcg, gfp_mask | __GFP_NOFAIL, nr_pages) |
6752 | Return false |
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 |