函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:19:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:puset_change_task_nodemask - change task's mems_allowed and mempolicy*@tsk: the task to change*@newmems: new nodes that the task will be set* We use the mems_allowed_seq seqlock to safely update both tsk->mems_allowed
函数原型:static void cpuset_change_task_nodemask(struct task_struct *tsk, nodemask_t *newmems)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct task_struct * | tsk | |
| nodemask_t * | newmems |
| 1620 | 禁止中断() |
| 1621 | write_seqcount_begin( & mems_allowed_seq) |
| 1623 | nodes_or(mems_allowed, mems_allowed, * newmems) |
| 1624 | mpol_rebind_task(tsk, newmems) |
| 1625 | mems_allowed等于newmems |
| 1627 | write_seqcount_end( & mems_allowed_seq) |
| 1628 | 开中断() |
| 1630 | task_unlock(tsk) |
| 名称 | 描述 |
|---|---|
| update_tasks_nodemask | pdate_tasks_nodemask - Update the nodemasks of tasks in the cpuset.*@cs: the cpuset in which each task's mems_allowed mask needs to be changed* Iterate through each task of @cs updating its mems_allowed to the* effective cpuset's |
| cpuset_attach |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |