Subject: Re: spl and sleep(9)
To: None <tech-kern@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: tech-kern
Date: 05/17/2005 14:45:44
On Tuesday 17 May 2005 14:43, Martin Husemann wrote:
> On Tue, May 17, 2005 at 02:35:30PM +0700, Ian Zagorskih wrote:
> > At point (1) do i need to call spltty() once again or tsleep(9) restores
> > previous system priority level?
>
> In short: the latter.
> The (l)tsleep() call may cause a context swith from and back to your
> current context. The spl is preserved on context switches.
Thanks, Martin. This is what i thought as it's working, just want to be
sure :)
// wbr