Subject: Re: Return value of cpu_switchto(9)
To: Matt Thomas <matt@3am-software.com>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 05/20/2007 23:14:49
On Sun, May 20, 2007 at 01:58:23PM -0700, Matt Thomas wrote:
> switchto(NULL, tmp); /* old is deleted *.
> switchto(tmp, x);
> 
> if old was returned, it would be to a deleted lwp and that can't be  
> right.

I don't understand. In the switchto(NULL, tmp) case - should it return
NULL, or the lwp it is switching away from?

My reading of the man page says the latter, but code for the ports
I checked does the former.

Martin