函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:47:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mem_cgroup_can_attach
函数原型:static int mem_cgroup_can_attach(struct cgroup_taskset *tset)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cgroup_taskset * | tset |
5605 | struct mem_cgroup * memcg = NULL |
5610 | ret等于0 |
5613 | 如果cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys)则返回:0 |
5622 | p = NULL |
5628 | 如果非p则返回:0 |
5636 | move_flags等于READ_ONCE(* Should we move charges of a task when a task is moved into this * mem_cgroup ? And what type of charges should we move ?) |
5637 | 如果非move_flags则返回:0 |
5640 | from等于mem_cgroup_from_task(p) |
5645 | 如果非mm则返回:0 |
5652 | VM_BUG_ON(moved_charge) |
5653 | VM_BUG_ON(moved_swap) |
5655 | 加自旋锁 |
5659 | flags等于move_flags |
5660 | 自旋锁解锁 |
5663 | ret等于mem_cgroup_precharge_mc(mm) |
5664 | 如果ret则mem_cgroup_clear_mc() |
5666 | 否则 |
5669 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |