From owner-freebsd-hackers Mon Oct 21 23:40:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D53DD37B401 for ; Mon, 21 Oct 2002 23:40:14 -0700 (PDT) Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 644DA43E3B for ; Mon, 21 Oct 2002 23:40:14 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0152.cvx21-bradley.dialup.earthlink.net ([209.179.192.152] helo=mindspring.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 183shu-000095-00; Mon, 21 Oct 2002 23:40:03 -0700 Message-ID: <3DB4F1D2.81B791AE@mindspring.com> Date: Mon, 21 Oct 2002 23:36:02 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" Cc: rizzo@icir.org, dchrist@cox.net, hackers@FreeBSD.ORG Subject: Re: Scheduling a recurring task in a device driver References: <20021021092312.D18652@carp.icir.org> <20021021.231850.121892484.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "M. Warner Losh" wrote: > In message: <20021021092312.D18652@carp.icir.org> > Luigi Rizzo writes: > : a timeout() call will do (at most once per tick). grep for "timeout(" > : in most of device drivers to see how to use it. > > Also, A software interrupt would be good too, depending on the nature > of the recurring event. I considered suggesting this, but you are right about needing to know more about the frequency and other requirements of the hardware bug they are working around, before a useful suggestion is possible. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message