2000-10-30 19:16:30

by Kenn Humborg

[permalink] [raw]
Subject: Third arg to switch_to()


Can anyone point me to an explanation of the third arg to
switch_to(prev, next, last)?

It appeared in 2.2.8.

What exactly is supposed to be written to it?

Thanks,
Kenn


2000-10-30 23:26:03

by Kenn Humborg

[permalink] [raw]
Subject: Re: Third arg to switch_to()

On Mon, Oct 30, 2000 at 07:15:58PM +0000, I wrote:
>
> Can anyone point me to an explanation of the third arg to
> switch_to(prev, next, last)?
>
> It appeared in 2.2.8.
>
> What exactly is supposed to be written to it?

Mea culpa...

Further digging revealed that it's for returning prev in the
new task, to deal with the fact that the stack has changed
so local variables in schedule() don't exist anymore.

Later,
Kenn