函数逻辑报告 |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-27 12:19:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Common handling for a write to a "cpus" or "mems" file.
函数原型:static ssize_t cpuset_write_resmask(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kernfs_open_file * | of | |
char * | buf | |
size_t | nbytes | |
loff_t | off |
2357 | 获取指定CSS参考 |
2361 | get_online_cpus() |
2362 | percpu_down_write( & cpuset_rwsem) |
2363 | 如果非venient tests for these bits 则转到:out_unlock |
2366 | trialcs等于alloc_trial_cpuset - allocate a trial cpuset*@cs: the cpuset that the trial cpuset duplicates |
2367 | 如果非trialcs则 |
2369 | 转到:out_unlock |
2373 | 当:private恒等于FILE_CPULIST |
2374 | retval等于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 |
2375 | 退出 |
2376 | 当:private恒等于FILE_MEMLIST |
2379 | 默认 |
2385 | out_unlock : |
2386 | percpu_up_write( & cpuset_rwsem) |
2387 | put_online_cpus() |
2389 | 设置一个css引用 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |