函数逻辑报告 |
Source Code:arch\x86\kernel\apic\apic.c |
Create Date:2022-07-27 09:26:23 |
| Last Modify:2020-03-16 21:21:31 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:If mask=1, the LVT entry does not generate interrupts while mask=0* enables the vector. See also the BKDGs. Must be called with* preemption disabled.
函数原型:int setup_APIC_eilvt(u8 offset, u8 vector, u8 msg_type, u8 mask)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| u8 | offset | |
| u8 | vector | |
| u8 | msg_type | |
| u8 | mask |
| 433 | reg等于APIC_EILVTn(offset) |
| 438 | reserved等于reserve_eilvt_offset(offset, new) |
| 441 | 打印错误信息(FW_BUG* Add this to a message where you are sure the firmware is buggy or behaves* really stupid or out of spec"cpu %d, try to use APIC%lX (LVT offset %d) for vector 0x%x, but the register is already in use for vector 0x%x on another cpu\n", 当前cpu ID(), reg, offset, new, reserved) |
| 445 | 返回:负EINVAL |
| 448 | 如果非eilvt_entry_is_changeable(old, new)则 |
| 449 | 打印错误信息(FW_BUG* Add this to a message where you are sure the firmware is buggy or behaves* really stupid or out of spec"cpu %d, try to use APIC%lX (LVT offset %d) for vector 0x%x, but the register is already in use for vector 0x%x on this cpu\n", 当前cpu ID(), reg, offset, new, old) |
| 453 | 返回:负EBUSY |
| 456 | apic_write(reg, new) |
| 458 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |