这种方法的主要目的是模拟中断,并测试ISR是否处理了所有可能的中断。
The primary aim of this approach is to simulate interrupts and test whether the ISR handles all possible interrupts.
需要调用这个特殊的ioctl函数INTR_SIMULATE来模拟中断。
The special ioctl function INTR_SIMULATE needs to be called to simulate the interrupts.
中断生成之后,就重新设置中断模拟状态标志,并返回成功。
Once the interrupts are generated, reset the interrupt simulation status flag and return success.
应用推荐