Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Nov 1998 15:52:36 +0100 (MET)
From:      Nick Hibma <nick.hibma@jrc.it>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Cc:        Etienne.Debruin@KryptoKom.DE, FreeBSD hackers mailing list <hackers@FreeBSD.ORG>
Subject:   Re: waiting in device driver
Message-ID:  <Pine.GSO.3.95q.981104154336.14344b-100000@elect8>
In-Reply-To: <199811041219.NAA18582@labinfo.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Nov 1998, Luigi Rizzo wrote:

 > > which is the best way to wait for the DMA routines of a card to complete?
 > > should one go in a while loop and test a flag (which gets set by the
 > > interrupt handler once completed) or should i go for the tsleep option?
 > 
 > do you need to ask ???

On the scale of one to $stupid, this answer scores fairly $stupid.


The answer might be (but then again I haven't followed the thread):

In Linux you would, yes. In FreeBSD, if you expect that the delay would
be more than a couple of microseconds, you would call tsleep, see

	man tsleep


Cheers,

Nick

Loose'95: USB mouse installation: 2 hours, 5 reboots and no joy.
FreeBSD:  RAID array installation: 10 minutes, 0 reboots and lots.



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?Pine.GSO.3.95q.981104154336.14344b-100000>