Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cpuset.c Create Date:2022-07-28 11:16:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pdate_cpumasks_hier - Update effective cpumasks and tasks in the subtree*@cs: the cpuset to consider*@tmp: temp variables for calculating effective_cpus & partition setup* When congifured cpumask is changed, the effective cpumasks of this cpuset

Proto:static void update_cpumasks_hier(struct cpuset *cs, struct tmpmasks *tmp)

Type:void

Parameter:

TypeParameterName
struct cpuset *cs
struct tmpmasks *tmp
1296  bool need_rebuild_sched_domains = false
1298  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1299  cpuset_for_each_descendant_pre - pre-order walk of a cpuset's descendants*@des_cs: loop cursor pointing to the current descendant*@pos_css: used for iteration*@root_cs: target cpuset to walk ancestor of(cp, pos_css, cs)
1300  parent = parent_cs(cp)
1302  mpute_effective_cpumask - Compute the effective cpumask of the cpuset*@new_cpus: the temp variable for the new effective_cpus mask*@cs: the cpuset the need to recompute the new effective_cpus mask*@parent: the parent cpuset* If the parent has subpartition
1327  Continue
1336  If cp != cs && partition root state Then
1376  If Not ss_tryget_online - try to obtain a reference on the specified css if online*@css: target css* Obtain a reference on @css if it's online Then Continue
1378  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1380  spin_lock_irq( & callback_lock)
1382  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
1411  spin_unlock_irq( & callback_lock)
1413  WARN_ON(!Cgroup v2 behavior is used when on default hierarchy or the* cgroup_v2_mode flag is set. && !pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input)
1416  pdate_tasks_cpumask - Update the cpumasks of tasks in the cpuset.*@cs: the cpuset in which each task's cpus_allowed mask needs to be changed* Iterate through each task of @cs updating its cpus_allowed to the* effective cpuset's
1424  If Not pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. && is_sched_load_balance(cp) && ( Not cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(This file *must* be included with SUBSYS() defined.) || is_partition_root(cp)) Then need_rebuild_sched_domains = true
1430  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1431  ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online().
1433  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1435  If need_rebuild_sched_domains Then rebuild_sched_domains_locked()
Caller
NameDescribe
update_sibling_cpumaskspdate_sibling_cpumasks - Update siblings cpumasks*@parent: Parent cpuset*@cs: Current cpuset*@tmp: Temp variables
update_cpumaskpdate_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