linux - 将 VxWorks intConnect API 移植到 linux

标签 linux interrupt porting vxworks

我正在尝试将 VxWorks API 移植到 Linux。在我找到 intArchLib api 之前,它工作正常。如何将 int API(intConnect、intLock ...)移植到 Linux。

intConnect :此 api 为中断向量 (IRQ) 注册一个中断例程 (ISR)。当注册中断发生时,将调用此 ISR。

  1. 是否可以在 Linux 中不使用内核模式驱动程序进行移植?
  2. 是否可以在 Linux 中不使用用户模式驱动程序进行移植?

请帮帮我。

SS

最佳答案

没有合理的方法将 intConnect 移植到 Linux。换句话说,intConnect是vxWorks中的一个API,不应该被设备驱动程序直接使用。应该使用 intConnect 来实现其他高抽象接口(interface)。例如,从 vxWorks 6.6 开始,vxbIntConnect 是用 intConnect 实现的。

关于linux - 将 VxWorks intConnect API 移植到 linux,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12603375/

相关文章:

javascript - 替代 arguments.callee

linux - linux中的chmod可以有多少种组合?

linux - 尽管 df 显示很多,但 aufs 上的 Docker 磁盘空间不足

c - 在工作队列中使用 spin_lock() 与 down_interruptible()

c - STM32无法清除PWM中断标志

prototype - 6To5 编译器 - 使用 __proto__ 进行继承

linux - 哪个版本的 ctags 有 `-T` 选项?

linux - 如何从 linux shell 脚本中另一个命令(管道)的标准输出读取输入?

linux-kernel - Linux内核ARM异常栈init

c++ - 在 Xcode : error during compilation: STL vector 中编译 C++ 类