函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cpuset.c Create Date:2022-07-27 12:19:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void cpuset_css_offline(struct cgroup_subsys_state *css)

返回类型:void

参数:

类型参数名称
struct cgroup_subsys_state *css
2802  cs等于css_cs(css)
2804  get_online_cpus()
2805  percpu_down_write( & cpuset_rwsem)
2807  如果is_partition_root(cs)则pdate_prstate - update partititon_root_state* Call with cpuset_mutex held.
2810  如果非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)则pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held.
2814  如果* Default hierarchy only: * use_parent_ecpus - set if using parent's effective_cpus * child_ecpus_count - # of children with use_parent_ecpus set
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()