Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pdate_prstate - update partititon_root_state* Call with cpuset_mutex held.

Proto:static int update_prstate(struct cpuset *cs, int val)

Type:int

Parameter:

TypeParameterName
struct cpuset *cs the cpuset to update
intval 0 - disabled, 1 - enabled
1921  parent = parent_cs( the cpuset to update)
1924  If 0 - disabled, 1 - enabled != 0 && 0 - disabled, 1 - enabled != 1 Then Return -EINVAL
1926  If 0 - disabled, 1 - enabled == partition root state Then Return 0
1933  If 0 - disabled, 1 - enabled && partition root state Then Return -EINVAL
1936  If 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. Then Return -ENOMEM
1939  err = -EINVAL
1940  If Not partition root state Then
1946  If pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. Then Go to out
1949  err = pdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held.
1950  If err Then Go to 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  If err Then
1957  Go to out
1959  partition root state = PRS_ENABLED
1960  Else
1968  err = 0
1969  Go to 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  If err Then Go to 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  If parent != top_cpuset Then 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
1990  If child_ecpus_count Then pdate_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  Return err
Caller
NameDescribe
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