Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6377

How to generate an interrupt every 1 ms

$
0
0

I would like to ask the opinions of Linux kernel driver expert.

I am planning to activate the interrupt every 1 ms to call the r / w function.

Initially, hrtimer was considered, but an unknown error occurred when the hrtimer callback function called the r / w function.

My guess is that the hrtimer call back function uses a function that takes a long time such as r / w or sleep to make an error.

Because in other locations r / w function works well.

As one idea, I tried to design by queuing that function in the workqueue in hrtimer callback function. As a result, it succeeded, but the work queue did not keep 1ms. Remarkably poor performance.(The hrtimer callback function is called every 1 ms, but the queued function is not. )

What's the alternative? I'd appreciate it if you could come up with an idea.Thank you for reading it.


Viewing all articles
Browse latest Browse all 6377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>