Date: Thu, 14 Apr 2005 17:06:45 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: xdivac02@stud.fit.vutbr.cz Cc: dipjyoti.saikia@gmail.com Subject: Re: What is the best way to introduce delay in kernel ? Message-ID: <20050414.170645.132440858.imp@bsdimp.com> In-Reply-To: <20050412145401.GA17895@stud.fit.vutbr.cz> References: <dcbc809d050412053117299afa@mail.gmail.com> <20050412145401.GA17895@stud.fit.vutbr.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20050412145401.GA17895@stud.fit.vutbr.cz> Divacky Roman <xdivac02@stud.fit.vutbr.cz> writes: : On Tue, Apr 12, 2005 at 06:01:52PM +0530, Dipjyoti Saikia wrote: : > Hi , : > : > I am writing a device driver and using DELAY() to intoduce delays in : > my code .Are there any better ways of doing the same for FreeBSD 4.10 : > ? : : : you can use [tm]sleep for this... or with another approach callouts might be : usefull DELAY is useful for short delays (< 1-2hz), while [tm]sleep are useful for longer delays. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050414.170645.132440858.imp>