函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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信息 |
1506 | retval等于validate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets |
1520 | 如果 partition root state 则 |
1529 | spin_lock_irq( & callback_lock) |
1535 | 如果 number of CPUs in subparts_cpus 则 |
1540 | spin_unlock_irq( & callback_lock) |
1544 | 如果 partition root state 则 |
1554 | 返回:0 |
名称 | 描述 |
---|---|
cpuset_write_resmask | Common handling for a write to a "cpus" or "mems" file. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |