From owner-freebsd-hackers Sun Oct 22 11:20:31 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA00913 for hackers-outgoing; Sun, 22 Oct 1995 11:20:31 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id LAA00903 for ; Sun, 22 Oct 1995 11:20:28 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id TAA27451 for ; Sun, 22 Oct 1995 19:19:56 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id TAA28409 for freebsd-hackers@freebsd.org; Sun, 22 Oct 1995 19:19:55 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id TAA03456 for freebsd-hackers@freebsd.org; Sun, 22 Oct 1995 19:18:56 +0100 From: J Wunsch Message-Id: <199510221818.TAA03456@uriah.heep.sax.de> Subject: What is the best way... To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sun, 22 Oct 1995 19:18:55 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 789 Sender: owner-hackers@freebsd.org Precedence: bulk ...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. ;-)