函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\mtrr\generic.c |
Create Date:2022-07-27 09:06:32 |
Last Modify:2022-05-18 17:45:43 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:generic_set_mtrr - set variable MTRR register on the local CPU.*@reg: The register to set.*@base: The base address of the region.*@size: The size of the region. If this is 0 the region is disabled.*@type: The type of the region.* Returns nothing.
函数原型:static void generic_set_mtrr(unsigned int reg, unsigned long base, unsigned long size, mtrr_type type)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | reg | |
unsigned long | base | |
unsigned long | size | |
mtrr_type | type |
837 | vr等于var_ranges[reg] |
839 | local_irq_save(flags) |
842 | 如果size恒等于0则 |
848 | memset(vr, 0, sizeof(structmtrr_var_range)) |
849 | 否则 |
850 | base_lo等于base左移PAGE_SHIFT determines the page size 位按位或type |
851 | base_hi等于base按位与size_and_mask的值右移32减PAGE_SHIFT determines the page size 位 |
852 | mask_lo等于负size左移PAGE_SHIFT determines the page size 位按位或0x800 |
853 | mask_hi等于负size按位与size_and_mask的值右移32减PAGE_SHIFT determines the page size 位 |
859 | post_set() |
860 | local_irq_restore(flags) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |