函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\resctrl\core.c |
Create Date:2022-07-27 09:10:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:domain_add_cpu - Add a cpu to a resource's domain list.* If an existing domain in the resource r's domain list matches the cpu's* resource id, add the cpu in the domain.* Otherwise, a new domain is allocated and inserted into the right position
函数原型:static void domain_add_cpu(int cpu, struct rdt_resource *r)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | cpu | |
| struct rdt_resource * | r |
| 559 | id等于get_cache_id(cpu, cache_level) |
| 564 | 如果是错误则 |
| 569 | 如果d则 |
| 570 | 设置CPU信息 |
| 571 | 返回 |
| 574 | d等于根据内存节点分配内存 |
| 575 | 如果非d则返回 |
| 579 | 设置CPU信息 |
| 581 | 如果alloc_capable且domain_setup_ctrlval(r, d)则 |
| 582 | 释放内存 |
| 583 | 返回 |
| 586 | 如果mon_capable且domain_setup_mon_state(r, d)则 |
| 587 | 释放内存 |
| 588 | 返回 |
| 591 | 添加链表项 |
| 名称 | 描述 |
|---|---|
| resctrl_online_cpu |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |