Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_trial_cpuset - allocate a trial cpuset*@cs: the cpuset that the trial cpuset duplicates

Proto:static struct cpuset *alloc_trial_cpuset(struct cpuset *cs)

Type:struct cpuset

Parameter:

TypeParameterName
struct cpuset *cs
519  trial = kmemdup(cs, size of cs , GFP_KERNEL)
520  If Not trial Then Return NULL
523  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
524  kfree(trial)
525  Return NULL
528  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
529  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
530  Return trial
Caller
NameDescribe
update_flagpdate_flag - read a 0 or a 1 in a file and update associated flag* Call with cpuset_mutex held.
cpuset_write_resmaskCommon handling for a write to a "cpus" or "mems" file.