Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static void cpuset_css_offline(struct cgroup_subsys_state *css)

Type:void

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
2802  cs = css_cs(css)
2804  get_online_cpus()
2805  percpu_down_write( & cpuset_rwsem)
2807  If is_partition_root(cs) Then pdate_prstate - update partititon_root_state* Call with cpuset_mutex held.
2810  If 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_sched_load_balance(cs) Then pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held.
2814  If * Default hierarchy only: * use_parent_ecpus - set if using parent's effective_cpus * child_ecpus_count - # of children with use_parent_ecpus set Then
2815  parent = parent_cs(cs)
2817  * Default hierarchy only: * use_parent_ecpus - set if using parent's effective_cpus * child_ecpus_count - # of children with use_parent_ecpus set = false
2818  child_ecpus_count--
2821  cpuset_dec()
2822  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
2824  percpu_up_write( & cpuset_rwsem)
2825  put_online_cpus()