Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pdate_prstate - update partititon_root_state* Call with cpuset_mutex held.
Proto:static int update_prstate(struct cpuset *cs, int val)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuset * | cs | the cpuset to update |
| int | val | 0 - disabled, 1 - enabled |
| 1921 | parent = parent_cs( the cpuset to update) |
| 1924 | If 0 - disabled, 1 - enabled != 0 && 0 - disabled, 1 - enabled != 1 Then Return -EINVAL |
| 1926 | If 0 - disabled, 1 - enabled == partition root state Then Return 0 |
| 1933 | If 0 - disabled, 1 - enabled && partition root state Then Return -EINVAL |
| 1940 | If Not partition root state Then |
| 1946 | If pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. Then Go to out |
| 1949 | err = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. |
| 1955 | If err Then |
| 1956 | pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held. |
| 1957 | Go to out |
| 1959 | partition root state = PRS_ENABLED |
| 1960 | Else |
| 1965 | If partition root state == PRS_ERROR Then |
| 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 | Go to out |
| 1977 | partition root state = 0 |
| 1990 | If child_ecpus_count Then pdate_sibling_cpumasks - Update siblings cpumasks*@parent: Parent cpuset*@cs: Current cpuset*@tmp: Temp variables |
| 1993 | rebuild_sched_domains_locked() |
| 1994 | out : |
| 1996 | Return err |
| Name | Describe |
|---|---|
| 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 |
| 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 |