Re: Question regarding thread_struct

From: Imanpreet Arora
Date: Tue Mar 08 2005 - 12:31:43 EST


On Tue, 08 Mar 2005 12:13:20 -0500, Robert Love <rml@xxxxxxxxxx> wrote:
> On Tue, 2005-03-08 at 22:34 +0530, Imanpreet Arora wrote:
>
> > I am wondering if someone could provide information as to how
> > thread_struct is kept in memory. Robert Love mentions that it is kept
> > at the "lowest" kernel address in case of x86 based platform. Could
> > anyone answer these questions.
>
> Kernel _stack_ address for the given process.
>
> > a) When a stack is resized, is the thread_struct structure copied onto
> > a new place?
>
> This is the kernel stack, not any potential user-space stack. Kernel
> stacks are not resized.

This has been a doubt for a couple of days, and I am wondering if this
one could also be cleared. When you say kernel stack, can't be resized


a) Does it mean that the _whole_ of the kernel is restricted to
that 8K or 16K of memory?

b) Or does it mean that a particular stack for a particular
process, can't be resized?

c) And for that matter how exactly do we define a kernel stack?

TIA
--

Imanpreet Singh Arora
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/