函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:49:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:bool mem_cgroup_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mem_cgroup * | memcg | |
unsigned int | nr_pages |
6728 | gfp_mask等于GFP_KERNEL |
6743 | 如果in_softirq()则gfp_mask等于GFP_NOWAIT |
6748 | 如果try_charge(memcg, gfp_mask, nr_pages)恒等于0则返回:true |
6751 | try_charge(memcg, gfp_mask | __GFP_NOFAIL, nr_pages) |
6752 | 返回:false |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |