3 ms·
I'm curious if you can really design a practical API that avoid all the issues the author talk about. Even on something as simple as interrupt delivery to a si
by xorblurb 10y ago
I'm curious if you can really design a practical API that avoid all the issues the author talk about.
Even on something as simple as interrupt delivery to a single consumer, you MUST be prepared to handle merged and spurious interrupts -- I would argue that any driver that is not prepared to do so (in the general case) is buggy.
Maybe it's easier to do perfectly with an epoll/kqueue API for some reasons, but, without having tried to think much about it, I can't imagine why it should be. I have the intuition this is way harder. Actually I'm not even sure if I can have any intuition about the difficulty to achieve the behavior wanted by the author of that article, because the author did not actually specified the behavior he desires...