[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kernel stack question



> I wanted to know whether Kernel maintains a kernel mode stack for each user
> process? or does it maintain one kernel mode stack for all user processes?.

One for each process.

> Where exactly in memory is this stack space allocated?.
>
> How does kernel get the address of the process descriptor from the stack
> pointer?

current_thread_info()->task

> Thanks for your help in advance.
>
> Pandari

--
Bora SAHIN

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/