函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pdate_prstate - update partititon_root_state* Call with cpuset_mutex held.

函数原型:static int update_prstate(struct cpuset *cs, int val)

返回类型:int

参数:

类型参数名称
struct cpuset *cs the cpuset to update
intval 0 - disabled, 1 - enabled
1921  parent等于parent_cs( the cpuset to update)
1924  如果 0 - disabled, 1 - enabled不等于0且 0 - disabled, 1 - enabled不等于1则返回:负EINVAL
1926  如果 0 - disabled, 1 - enabled恒等于 partition root state 则返回:0
1933  如果 0 - disabled, 1 - enabled partition root state 则返回:负EINVAL
1936  如果alloc_cpumasks - allocate three cpumasks for cpuset*@cs: the cpuset that have cpumasks to be allocated.*@tmp: the tmpmasks structure pointer* Return: 0 if successful, -ENOMEM otherwise.* Only one of the two input arguments should be non-NULL.则返回:负ENOMEM
1939  err等于负EINVAL
1940  如果非 partition root state
1946  如果pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.则转到:out
1949  err等于pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held.
1950  如果err则转到:out
1953  err等于pdate_parent_subparts_cpumask - update subparts_cpus mask of parent cpuset*@cpuset: The cpuset that requests change in partition root state*@cmd: Partition root state change command*@newmask: Optional new cpumask for partcmd_update*@tmp: Temporary addmask
1955  如果err
1957  转到:out
1959  partition root state 等于PRS_ENABLED
1960  否则
1965  如果 partition root state 恒等于PRS_ERROR
1966  partition root state 等于0
1968  err等于0
1969  转到:out
1972  err等于pdate_parent_subparts_cpumask - update subparts_cpus mask of parent cpuset*@cpuset: The cpuset that requests change in partition root state*@cmd: Partition root state change command*@newmask: Optional new cpumask for partcmd_update*@tmp: Temporary addmask
1974  如果err则转到:out
1977  partition root state 等于0
1980  pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held.
1987  如果parent不等于top_cpusetpdate_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
1990  如果child_ecpus_countpdate_sibling_cpumasks - Update siblings cpumasks*@parent: Parent cpuset*@cs: Current cpuset*@tmp: Temp variables
1993  rebuild_sched_domains_locked()
1994  out :
1995  _cpumasks - free cpumasks in a tmpmasks structure*@cs: the cpuset that have cpumasks to be free.*@tmp: the tmpmasks structure pointer
1996  返回:err
调用者
名称描述
sched_partition_write
cpuset_css_offlineIf 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