Linux Interrupt vs. Polling

前端 未结 3 1129
[愿得一人]
[愿得一人] 2021-02-07 10:27

I am developing a system with a DSP and an ARM. On the ARM there is a linux OS. I have a DSP sending data to the ARM (Linux) - In the Linux there is a kernel module which read t

3条回答
  •  我寻月下人不归
    2021-02-07 10:47

    You don't seem to mention any hard time constraints, so you could really go with either approach. However, as Martin James said, polling introduces some overhead to the application, which you probably don't want.

    Personally, I'd go with an interrupt or event flag triggered by the kernel. While you may not have have hard timing constraints, I assume you're wanting something that's more deterministic, rather than not. A kernel interrupt will get you closer to that.

提交回复
热议问题