Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:validate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets
Proto:static int validate_change(struct cpuset *cur, struct cpuset *trial)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuset * | cur | |
| struct cpuset * | trial |
| 578 | ret = 0 |
| 579 | If cur == top_cpuset Then Go to out |
| 595 | If (is_cpu_exclusive(trial) || is_cpu_exclusive(c)) && c != cur && pumask_intersects - (*src1p & *src2p) != 0*@src1p: the first input*@src2p: the second input Then Go to out |
| 599 | If (is_mem_exclusive(trial) || is_mem_exclusive(c)) && c != cur && nodes_intersects(mems_allowed, mems_allowed) Then Go to out |
| 614 | If Not nodes_empty(mems_allowed) && nodes_empty(mems_allowed) Then Go to out |
| 624 | If is_cpu_exclusive(cur) && Not cpuset_cpumask_can_shrink( user-configured CPUs and Memory Nodes allow to tasks , user-configured CPUs and Memory Nodes allow to tasks ) Then Go to out |
| 629 | ret = 0 |
| 630 | out : |
| 632 | Return ret |
| Name | Describe |
|---|---|
| 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |