2002-03-20 19:31:16

by Chris Meadors

[permalink] [raw]
Subject: task_struct changes?

I'm trying to update some of the code for the Alpha arch. Seems that the
task_struct struct was changed, but the changes were not reflected in all
the platforms.

These two have nailed me so far:

task_struct->p_opptr

task_struct->p_pptr


What were they changed to, and is it just a one line fix, or is it more
involved?

-Chris
--
Two penguins were walking on an iceberg. The first penguin said to the
second, "you look like you are wearing a tuxedo." The second penguin
said, "I might be..." --David Lynch, Twin Peaks


2002-03-20 19:39:26

by Holzrichter, Bruce

[permalink] [raw]
Subject: RE: task_struct changes?

p_pptr changed to parent and you could just swap them in the code,

IE:
task_struct->p_pptr would become task_struct->parent

Not sure about the p_opptr, but I bet you'll find the same type of change.

I found this on Sparc64 as well, if you grep the 2.5.7 patch file, you
should be able to find p_opptr pretty quickly, I bet.

Hope this helps..

Bruce H.

> -----Original Message-----
> From: Chris Meadors [mailto:[email protected]]
> Sent: Wednesday, March 20, 2002 2:48 PM
> To: linux-kernel
> Subject: task_struct changes?
>
>
> I'm trying to update some of the code for the Alpha arch.
> Seems that the
> task_struct struct was changed, but the changes were not
> reflected in all
> the platforms.
>
> These two have nailed me so far:
>
> task_struct->p_opptr
>
> task_struct->p_pptr
>
>
> What were they changed to, and is it just a one line fix, or
> is it more
> involved?
>
> -Chris
> --
> Two penguins were walking on an iceberg. The first penguin
> said to the
> second, "you look like you are wearing a tuxedo." The second penguin
> said, "I might be..." --David Lynch,
> Twin Peaks
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2002-03-20 19:43:16

by Holzrichter, Bruce

[permalink] [raw]
Subject: RE: task_struct changes?

> Not sure about the p_opptr, but I bet you'll find the same
> type of change.
>
> I found this on Sparc64 as well, if you grep the 2.5.7 patch
> file, you should be able to find p_opptr pretty quickly, I bet.
>
As a matter of fact, I did it for you, and it looks like you'll need this
for p_opptr:

p_opptr became real_parent

task_struct->p_opptr would become task_struct->real_parent

Hope this helps you out..

Bruce h.

2002-03-20 19:48:46

by Chris Meadors

[permalink] [raw]
Subject: RE: task_struct changes?

On Wed, 20 Mar 2002, Holzrichter, Bruce wrote:

> p_pptr changed to parent and you could just swap them in the code,
>
> IE:
> task_struct->p_pptr would become task_struct->parent
>
> Not sure about the p_opptr, but I bet you'll find the same type of change.
>
> I found this on Sparc64 as well, if you grep the 2.5.7 patch file, you
> should be able to find p_opptr pretty quickly, I bet.
>
> Hope this helps..
>
> Bruce H.

Thanks it did help.

I guessed right, but just wanted to make sure.

And I found p_opptr became real_parent, if anyone else was wondering.

-Chris
--
Two penguins were walking on an iceberg. The first penguin said to the
second, "you look like you are wearing a tuxedo." The second penguin
said, "I might be..." --David Lynch, Twin Peaks