函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:19:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Handle user request to change the 'mems' memory placement* of a cpuset
函数原型:static int update_nodemask(struct cpuset *cs, struct cpuset *trialcs, const char *buf)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cpuset * | cs | |
struct cpuset * | trialcs | |
const char * | buf |
1771 | 如果cs恒等于top_cpuset则 |
1782 | 如果非buf则 |
1783 | nodes_clear(mems_allowed) |
1784 | 否则 |
1785 | retval等于nodelist_parse(buf, mems_allowed) |
1789 | 如果非nodes_subset(mems_allowed, mems_allowed)则 |
1796 | 如果nodes_equal(mems_allowed, mems_allowed)则 |
1800 | retval等于validate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets |
1804 | spin_lock_irq( & callback_lock) |
1805 | mems_allowed等于mems_allowed |
1806 | spin_unlock_irq( & callback_lock) |
1810 | done : |
1811 | 返回:retval |
名称 | 描述 |
---|---|
cpuset_write_resmask | Common handling for a write to a "cpus" or "mems" file. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |