Polling and Sleep in a Driver
Alfred Perlstein
alfred at freebsd.org
Mon Oct 20 17:40:51 UTC 2008
* Len Gross <sandiegobiker at gmail.com> [081019 07:49] wrote:
> I have a MAC protocol written using Netgraph. It runs in userland
> and uses a simple poll, sleep loop. It has proved that the algorithms
> are correct, but the sleeps are not regular/accurate enough for my
> purposes. (I have pushed Hz up quite a bit with no real effect)
>
> If I were to implement the algorithms within a driver would the sleeps
> still suffer from the same "non real-time" behaviour I see in
> userland?
>
> Thanks in advance.
Try hooking hardclock(), just be careful.
-Alfred
More information about the freebsd-drivers
mailing list