Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held.
Proto:static int update_flag(cpuset_flagbits_t bit, struct cpuset *cs, int turning_on)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
cpuset_flagbits_t | bit | the bit to update (see cpuset_flagbits_t) |
struct cpuset * | cs | the cpuset to update |
int | turning_on | whether the flag is being set or cleared |
1878 | trialcs = alloc_trial_cpuset - allocate a trial cpuset*@cs: the cpuset that the trial cpuset duplicates |
1887 | err = validate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets |
1891 | balance_flag_changed = is_sched_load_balance( the cpuset to update) != is_sched_load_balance(trialcs) |
1894 | spread_flag_changed = is_spread_slab( the cpuset to update) != is_spread_slab(trialcs) || is_spread_page( the cpuset to update) != is_spread_page(trialcs) |
1897 | spin_lock_irq( & callback_lock) |
1899 | spin_unlock_irq( & callback_lock) |
1901 | If Not pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. && balance_flag_changed Then rebuild_sched_domains_locked() |
1906 | out : |
1908 | Return err |
Name | Describe |
---|---|
update_prstate | pdate_prstate - update partititon_root_state* Call with cpuset_mutex held. |
cpuset_write_u64 | |
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 |