Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2002 09:23:13 -0700
From:      Luigi Rizzo <rizzo@icir.org>
To:        David Christensen <dchrist@cox.net>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Scheduling a recurring task in a device driver
Message-ID:  <20021021092312.D18652@carp.icir.org>
In-Reply-To: <B1154A80CE56844B9EA4F77FAD2BA951F7EF@hobbes.drc.dhs.org>; from dchrist@cox.net on Mon, Oct 21, 2002 at 09:20:52AM -0700
References:  <B1154A80CE56844B9EA4F77FAD2BA951F7EF@hobbes.drc.dhs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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