函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:19:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:pdate_prstate - update partititon_root_state* Call with cpuset_mutex held.
函数原型:static int update_prstate(struct cpuset *cs, int val)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct cpuset * | cs | the cpuset to update |
| int | val | 0 - disabled, 1 - enabled |
| 1921 | parent等于parent_cs( the cpuset to update) |
| 1924 | 如果 0 - disabled, 1 - enabled不等于0且 0 - disabled, 1 - enabled不等于1则返回:负EINVAL |
| 1926 | 如果 0 - disabled, 1 - enabled恒等于 partition root state 则返回:0 |
| 1933 | 如果 0 - disabled, 1 - enabled且 partition root state 则返回:负EINVAL |
| 1940 | 如果非 partition root state 则 |
| 1949 | err等于pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. |
| 1955 | 如果err则 |
| 1956 | pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. |
| 1957 | 转到:out |
| 1959 | partition root state 等于PRS_ENABLED |
| 1960 | 否则 |
| 1965 | 如果 partition root state 恒等于PRS_ERROR则 |
| 1966 | partition root state 等于0 |
| 1967 | pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. |
| 1968 | err等于0 |
| 1969 | 转到:out |
| 1977 | partition root state 等于0 |
| 1990 | 如果child_ecpus_count则pdate_sibling_cpumasks - Update siblings cpumasks*@parent: Parent cpuset*@cs: Current cpuset*@tmp: Temp variables |
| 1993 | rebuild_sched_domains_locked() |
| 1994 | out : |
| 1996 | 返回:err |
| 名称 | 描述 |
|---|---|
| sched_partition_write | |
| cpuset_css_offline | If the cpuset being removed has its flag 'sched_load_balance'* enabled, then simulate turning sched_load_balance off, which* will call rebuild_sched_domains_locked(). That is not needed* in the default hierarchy where only changes in partition |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |