LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,

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.

regards
Bibek
 
Old 11-04-2010, 08:26 PM   #2
stress_junkie
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.

http://www.linuxjournal.com/article/3814

http://www.informit.com/articles/article.aspx?p=370047
 
Old 11-07-2010, 11:05 PM   #3
bibekbasu
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
http://linux.derkeiler.com/Mailing-L.../msg11745.html

regards
Bibek

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


Reply


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 07:58 PM
What is user mode jiffies and kernel mode jiffies of a process iamjayanth Linux - Software 2 09-15-2009 12:35 AM
Getting some process information in user mode devnux Programming 1 06-08-2008 04:31 PM
How can I get the context info for a thread/process running in user mode? LostInLinux4ever Programming 1 05-23-2007 05:00 PM
User Mode Linux doesn't compile with 2.6.18 error in process.c duryodhan Linux - Kernel 2 01-15-2007 07:17 AM


All times are GMT -5. The time now is 01:56 PM.

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