| 函数逻辑报告 | 
| Source Code: kernel\cgroup\cpuset.c | Create Date:2022-07-27 12:18:38 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:validate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets
函数原型:static int validate_change(struct cpuset *cur, struct cpuset *trial)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct cpuset * | cur | |
| struct cpuset * | trial | 
| 578 | ret等于0 | 
| 579 | 如果cur恒等于top_cpuset则转到:out | 
| 595 | 如果is_cpu_exclusive(trial)或is_cpu_exclusive(c)的值且c不等于cur且pumask_intersects - (*src1p & *src2p) != 0*@src1p: the first input*@src2p: the second input则转到:out | 
| 599 | 如果is_mem_exclusive(trial)或is_mem_exclusive(c)的值且c不等于cur且nodes_intersects(mems_allowed, mems_allowed)则转到:out | 
| 611 | 如果非pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.且pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.则转到:out | 
| 614 | 如果非nodes_empty(mems_allowed)且nodes_empty(mems_allowed)则转到:out | 
| 624 | 如果is_cpu_exclusive(cur)且非cpuset_cpumask_can_shrink( user-configured CPUs and Memory Nodes allow to tasks , user-configured CPUs and Memory Nodes allow to tasks )则转到:out | 
| 629 | ret等于0 | 
| 630 | out : | 
| 632 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| 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_nodemask | Handle user request to change the 'mems' memory placement* of a cpuset | 
| update_flag | pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |