函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:18:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pdate_parent_subparts_cpumask - update subparts_cpus mask of parent cpuset*@cpuset: The cpuset that requests change in partition root state*@cmd: Partition root state change command*@newmask: Optional new cpumask for partcmd_update*@tmp: Temporary addmask
函数原型:static int update_parent_subparts_cpumask(struct cpuset *cpuset, int cmd, struct cpumask *newmask, struct tmpmasks *tmp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cpuset * | cpuset | |
int | cmd | |
struct cpumask * | newmask | |
struct tmpmasks * | tmp |
1124 | bool part_error = false |
1126 | percpu_rwsem_assert_held( & cpuset_rwsem) |
1159 | 如果cmd恒等于Enable partition root 则 |
1162 | 否则如果cmd恒等于Disable partition root 则 |
1165 | 否则如果newmask则 |
1174 | deleting等于pumask_and - *dstp = *src1p & *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1 |
1197 | 否则 |
1213 | 如果cmd恒等于Update parent's subparts_cpus 则 |
1214 | prev_prs等于 partition root state |
1221 | 当: partition root state 恒等于PRS_ENABLED |
1222 | 如果part_error则 partition root state 等于PRS_ERROR |
1224 | 退出 |
1225 | 当: partition root state 恒等于PRS_ERROR |
1226 | 如果非part_error则 partition root state 等于PRS_ENABLED |
1228 | 退出 |
1233 | part_error等于prev_prs恒等于PRS_ERROR |
1236 | 如果非part_error且 partition root state 恒等于PRS_ERROR则返回:0 |
1239 | 如果 partition root state 恒等于PRS_ERROR则 |
1243 | adding = false |
1256 | spin_lock_irq( & callback_lock) |
1257 | 如果adding则 |
1263 | 如果deleting则 |
1274 | number of CPUs in subparts_cpus 等于pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in. |
1275 | spin_unlock_irq( & callback_lock) |
1277 | 返回:cmd恒等于Update parent's subparts_cpus |
名称 | 描述 |
---|---|
update_cpumasks_hier | pdate_cpumasks_hier - Update effective cpumasks and tasks in the subtree*@cs: the cpuset to consider*@tmp: temp variables for calculating effective_cpus & partition setup* When congifured cpumask is changed, the effective cpumasks of this cpuset |
update_cpumask | pdate_cpumask - update the cpus_allowed mask of a cpuset and all tasks in it*@cs: the cpuset to consider*@trialcs: trial cpuset*@buf: buffer of cpu numbers written to this cpuset |
update_prstate | pdate_prstate - update partititon_root_state* Call with cpuset_mutex held. |
cpuset_hotplug_update_tasks | puset_hotplug_update_tasks - update tasks in a cpuset for hotunplug*@cs: cpuset in interest*@tmp: the tmpmasks structure pointer* Compare @cs's cpu and mem masks against top_cpuset and if some have gone* offline, update @cs accordingly |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |