Subject: Re: spl and sleep(9)
To: Ian Zagorskih <ianzag@megasignal.com>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 05/17/2005 09:43:20
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.

Martin