Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2002 23:18:50 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        rizzo@icir.org
Cc:        dchrist@cox.net, hackers@FreeBSD.ORG
Subject:   Re: Scheduling a recurring task in a device driver
Message-ID:  <20021021.231850.121892484.imp@bsdimp.com>
In-Reply-To: <20021021092312.D18652@carp.icir.org>
References:  <B1154A80CE56844B9EA4F77FAD2BA951F7EF@hobbes.drc.dhs.org> <20021021092312.D18652@carp.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20021021092312.D18652@carp.icir.org>
            Luigi Rizzo <rizzo@icir.org> writes:
: 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.

Also, A software interrupt would be good too, depending on the nature
of the recurring event.

Warner

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?20021021.231850.121892484.imp>