函数逻辑报告 |
Source Code:arch\x86\kernel\amd_nb.c |
Create Date:2022-07-27 09:42:53 |
Last Modify:2020-03-16 21:36:56 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:amd_cache_northbridges
函数原型:int amd_cache_northbridges(void)
返回类型:int
参数:无
221 | misc_ids等于amd_nb_misc_ids |
222 | link_ids等于amd_nb_link_ids |
223 | root_ids等于amd_root_ids |
226 | roots_per_misc等于0 |
227 | misc_count等于0 |
228 | root_count等于0 |
231 | 如果num则返回:0 |
234 | 如果x86_vendor恒等于X86_VENDOR_HYGON则 |
240 | misc = NULL |
241 | 当((misc = next_northbridge(misc, misc_ids)) != NULL)循环 |
242 | misc_count自加 |
244 | 如果非misc_count则返回:负ENODEV |
247 | root = NULL |
248 | 当((root = next_northbridge(root, root_ids)) != NULL)循环 |
249 | root_count自加 |
251 | 如果root_count则 |
258 | 如果非roots_per_misc或root_count取模roots_per_misc则 |
269 | num等于misc_count |
273 | root等于root等于next_northbridge(root, root_ids) |
275 | misc等于misc等于next_northbridge(misc, misc_ids) |
277 | link等于link等于next_northbridge(link, link_ids) |
289 | 以j小于roots_per_misc循环root等于next_northbridge(root, root_ids) |
293 | 如果amd_gart_present()则flags或等于AMD_NB_GART |
299 | 如果非cpuid_edx(0x80000006)则返回:0 |
306 | 如果x86恒等于0x10且x86_model大于等于0x8且x86_model大于0x9或x86_stepping大于等于0x1的值则flags或等于AMD_NB_L3_INDEX_DISABLE |
312 | 如果x86恒等于0x15则flags或等于AMD_NB_L3_INDEX_DISABLE |
316 | 如果x86恒等于0x15则flags或等于AMD_NB_L3_PARTITIONING |
319 | 返回:0 |
名称 | 描述 |
---|---|
init_amd_nbs |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |