Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2008 10:40:51 -0700
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Len Gross <sandiegobiker@gmail.com>
Cc:        freebsd-drivers@freebsd.org
Subject:   Re: Polling and Sleep in a Driver
Message-ID:  <20081020174051.GM22503@elvis.mu.org>
In-Reply-To: <27cb3ada0810190720u2cc84097w2ed6425bc6ee8d3f@mail.gmail.com>
References:  <27cb3ada0810190720u2cc84097w2ed6425bc6ee8d3f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Len Gross <sandiegobiker@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081020174051.GM22503>