LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-28-2005, 03:24 AM   #1
hazzyb
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Difference b/t Kernel stack and User stack


Hi everybody

can anyone help me out with the difference among kernel stack and user stack...


Thanks
Hazzy
 
Old 06-28-2005, 11:55 AM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
I really not sure about what I'll tell you but I think kernel stack handle "all" the memory, as the kernel control the allocation of free memory. I'm not quite sure about "user" stack, but I believe the kernel memory "given" to application that need it is handled as a stack as well, which may be what you call "user stack".

It's like telling your application the pity X MB that have been given is "all we have" until it's full (then the kernel give some more).

I don't know if this help you.
 
Old 09-29-2008, 07:40 PM   #3
meonkeys
Member
 
Registered: Apr 2004
Location: Minneapolis
Distribution: Ubuntu
Posts: 45

Rep: Reputation: 15
Quote:
Originally Posted by hazzyb View Post
can anyone help me out with the difference among kernel stack and user stack...
Could you say more about what you're trying to figure out?

All I know about the two stacks is that both are required since instructions executed in user-mode should not be able to read or modify the stack used by the kernel. Also, using a separate stack in the kernel might help to make sure the kernel never runs out of stack space.

Related:
http://linux.derkeiler.com/Mailing-L...4-10/3194.html

Good luck, hope this helps!
 
  


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
kernel stack overflow prital Programming 2 06-29-2005 09:12 AM
When is the user stack allocated? moadon Programming 1 04-11-2005 11:28 PM
kernel stack error installing... artofluke Linux - General 1 03-04-2005 09:21 PM
How do you increase a kernel stack size? ginda Linux - Newbie 4 01-24-2005 06:52 PM
How To interpret kernel stack trace kklier Linux - Enterprise 6 08-22-2004 09:24 AM


All times are GMT -5. The time now is 06:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration