Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-04-2010, 02:03 AM   #1
LQ Newbie
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Linux Process Creation : User mode stack


I am new to Linux, Understood that from user mode, if a process call the system call fork(), then the process stars executing in system mode and a new child process is created with a new kernel mode space ( it include stack also) is allocated to that newly created child process.
My question is,
1>how and when is the user mode stack created for this newly created process?
2>How kernel know where is the user mode stack for this newly created process?
3>Can kernel access the user mode stack while executing in kernel mode in that newly created process context?

correct me if my question or understanding is wrong.

Thanks in advance for the guidance.

Old 11-04-2010, 07:26 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
A quick search on Google would list a mountain of information about this. Here are two examples.
Old 11-07-2010, 10:05 PM   #3
LQ Newbie
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hi stress_junkie,

I have gone through both the links. Still I am not satisfied whether I have got the answer or not.

Both the link tells that whenever a process is forked, generally 8Kb of kernel stack is allocated. It says nothing about user mode stack. Dos this implies, that the 8Kb stack is the only stack for any process in both the modes, ( kernel or user mode)?

I found a similar question to mine in the following link


Last edited by bibekbasu; 11-07-2010 at 10:13 PM. Reason: adding new info


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
single 8K process stack vs 4K process stack and a seperate 4K interrupt stack charvak Linux - Kernel 1 03-17-2010 06:58 PM
What is user mode jiffies and kernel mode jiffies of a process iamjayanth Linux - Software 2 09-14-2009 11:35 PM
Getting some process information in user mode devnux Programming 1 06-08-2008 03:31 PM
How can I get the context info for a thread/process running in user mode? LostInLinux4ever Programming 1 05-23-2007 04:00 PM
User Mode Linux doesn't compile with 2.6.18 error in process.c duryodhan Linux - Kernel 2 01-15-2007 06:17 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration