Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2005 09:45:35 -0600
From:      Scott Long <scottl@samsco.org>
To:        Norbert Koch <NKoch@demig.de>
Cc:        "Freebsd-Hackers@Freebsd. Org" <freebsd-hackers@freebsd.org>
Subject:   Re: await & asleep
Message-ID:  <42E65A9F.4010504@samsco.org>
In-Reply-To: <000001c591c5$2de9a980$4801a8c0@ws-ew-3.W2KDEMIG>
References:  <000001c591c5$2de9a980$4801a8c0@ws-ew-3.W2KDEMIG>

next in thread | previous in thread | raw e-mail | index | archive | help
Norbert Koch wrote:
> Hello.
> 
> The functions await() and asleep() in kern_synch.c
> are marked as EXPERIMENTAL/UNTESTED.
> Is this comment still valid? Does anyone have used
> those functions successfully? Should I better not
> use them in my device driver code for RELENG_4?
> How do I correctly cancel a request (as I should do
> according to the man page): "asleep (NULL, 0, NULL, 0)"?
> 
> Any help appreciated.
> 
> Norbert

The await family was removed in 5.x and beyond, so trying to
use them in 4.x will make your driver very unportable.  There
are better ways than await to handle delayed events.

Scott



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