Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 1995 19:18:55 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Subject:   What is the best way...
Message-ID:  <199510221818.TAA03456@uriah.heep.sax.de>

next in thread | raw e-mail | index | archive | help
...to implement something similar to the xxx_poll() driver entry
points in SysV?

For those whod don't know, these entries are supposed to be called on
each clock tick (at spl6, i think this is `soft clock'), and they are
useful for devices that lose interrupts, or that don't even have an
interrupt of its own.

The closest thing one could do (besides from the approach e.g.
pcaudio is using, which i consider being overkill as a poll()
replacement) were to continuously re-issue yet another timeout on each
clock tick.  However, since that would cause timeout() to walk the
entire timer queue, it's rather expensive.

Bruce?

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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