From owner-freebsd-hackers Mon Oct 21 9:23:21 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 BA4F537B401 for ; Mon, 21 Oct 2002 09:23:20 -0700 (PDT) Received: from carp.icir.org (carp.icir.org [192.150.187.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56BD043E75 for ; Mon, 21 Oct 2002 09:23:20 -0700 (PDT) (envelope-from rizzo@carp.icir.org) Received: from carp.icir.org (localhost [127.0.0.1]) by carp.icir.org (8.12.3/8.12.3) with ESMTP id g9LGNDpJ018764; Mon, 21 Oct 2002 09:23:13 -0700 (PDT) (envelope-from rizzo@carp.icir.org) Received: (from rizzo@localhost) by carp.icir.org (8.12.3/8.12.3/Submit) id g9LGND7c018763; Mon, 21 Oct 2002 09:23:13 -0700 (PDT) (envelope-from rizzo) Date: Mon, 21 Oct 2002 09:23:13 -0700 From: Luigi Rizzo To: David Christensen Cc: hackers@FreeBSD.ORG Subject: Re: Scheduling a recurring task in a device driver Message-ID: <20021021092312.D18652@carp.icir.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from dchrist@cox.net on Mon, Oct 21, 2002 at 09:20:52AM -0700 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 On Mon, Oct 21, 2002 at 09:20:52AM -0700, David Christensen wrote: > A device driver I'm porting from Linux uses tasklets to schedule a > recurring > event to work around a hardware bug. What would be the equivalent in > FreeBSD? a timeout() call will do (at most once per tick). grep for "timeout(" in most of device drivers to see how to use it. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message