函数逻辑报告 |
Source Code:mm\oom_kill.c |
Create Date:2022-07-27 15:29:05 |
| Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Determine the type of allocation constraint.
函数原型:static enum oom_constraint constrained_alloc(struct oom_control *oc)
返回类型:enum oom_constraint
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct oom_control * | oc |
| 257 | bool cpuset_limited = false |
| 260 | 如果is_memcg_oom(oc)则 |
| 261 | Used by oom implementation, do not set 等于如果mem_cgroup_get_max(Memory cgroup in which oom is invoked, or NULL for global oom )否则1 |
| 262 | 返回:CONSTRAINT_MEMCG |
| 268 | 如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_NUMA)则返回:CONSTRAINT_NONE |
| 271 | 如果非Used to determine cpuset 则返回:CONSTRAINT_NONE |
| 291 | 返回:CONSTRAINT_MEMORY_POLICY |
| 297 | 如果非cpuset_zone_allowed(zone, Used to determine cpuset and node locality requirement )则cpuset_limited = true |
| 300 | 如果cpuset_limited则 |
| 304 | 返回:CONSTRAINT_CPUSET |
| 306 | 返回:CONSTRAINT_NONE |
| 名称 | 描述 |
|---|---|
| out_of_memory | _of_memory - kill the "best" process when we run out of memory*@oc: pointer to struct oom_control* If we run out of memory, we have the choice between either* killing a random task (bad), letting the system crash (worse) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |