函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_trial_cpuset - allocate a trial cpuset*@cs: the cpuset that the trial cpuset duplicates

函数原型:static struct cpuset *alloc_trial_cpuset(struct cpuset *cs)

返回类型:struct cpuset

参数:

类型参数名称
struct cpuset *cs
519  trial等于kmemdup(cs, cs的长度, GFP_KERNEL)
520  如果非trial则返回:NULL
523  如果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.
524  kfree(trial)
525  返回: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  返回:trial
调用者
名称描述
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.