函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pdate_cpumask - update the cpus_allowed mask of a cpuset and all tasks in it*@cs: the cpuset to consider*@trialcs: trial cpuset*@buf: buffer of cpu numbers written to this cpuset

函数原型:static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs, const char *buf)

返回类型:int

参数:

类型参数名称
struct cpuset *cs
struct cpuset *trialcs
const char *buf
1481  如果cs恒等于top_cpuset则返回:负EACCES
1490  如果非buf
1491  清空全部CPU信息
1492  否则
1493  retval等于从用户空间中提取CPU信息
1494  如果retval小于0则返回:retval
1497  如果非pumask_subset - (*src1p & ~*src2p) == 0*@src1p: the first input*@src2p: the second input* Returns 1 if *@src1p is a subset of *@src2p, else returns 0则返回:负EINVAL
1503  如果pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input则返回:0
1506  retval等于validate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets
1507  如果retval小于0则返回:retval
1520  如果 partition root state
1522  如果pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.则返回:负EINVAL
1524  如果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 小于0则返回:负EINVAL
1529  spin_lock_irq( & callback_lock)
1530  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
1535  如果 number of CPUs in subparts_cpus
1536  pumask_andnot - *dstp = *src1p & ~*src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
1538  number of CPUs in subparts_cpus 等于pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
1540  spin_unlock_irq( & callback_lock)
1542  pdate_cpumasks_hier - Update effective cpumasks and tasks in the subtree*@cs: the cpuset to consider*@tmp: temp variables for calculating effective_cpus & partition setup* When congifured cpumask is changed, the effective cpumasks of this cpuset
1544  如果 partition root state
1545  parent等于parent_cs(cs)
1551  如果child_ecpus_countpdate_sibling_cpumasks - Update siblings cpumasks*@parent: Parent cpuset*@cs: Current cpuset*@tmp: Temp variables
1554  返回:0
调用者
名称描述
cpuset_write_resmaskCommon handling for a write to a "cpus" or "mems" file.