Review your favorite Linux distribution.
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 07-12-2010, 05:27 AM   #1
nishant mungse
LQ Newbie
Registered: Jul 2010
Posts: 1
Blog Entries: 1

Rep: Reputation: 0
difference between user and kernel space

what difference between user and kernel space.
Old 07-12-2010, 05:44 AM   #2
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,645
Blog Entries: 56

Rep: Reputation: Disabled
1 members found this post helpful.
Old 07-12-2010, 05:59 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,988

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Check bullet point #11 in the LQ rules
Old 03-26-2012, 02:58 AM   #4
Senior Member
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
The random access memory (RAM) can be divided into two distinct regions namely - the kernel space and the user space.

The kernel runs in the part of memory entitled to it. This part of memory cannot be accessed directly by the processes of the normal users while as the kernel can access all parts of the memory. To access some part of the kernel, the user processes have to use the predefined system calls i.e. open, read, write etc. Also, the C library functions like `printf` call the system call `write` in turn.

The system calls act as an interface between the user processes and the kernel processes. The access rights are placed on the kernel space for stopping the users to mess up with the kernel, unknowingly.

So, when a system call occurs a software interrupt is sent to the kernel. The CPU may hand over the control temporarily to the associated interrupt handler routine, and the kernel process which was halted by the interrupt resumes after the interrupt handler routine finishes its job.


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
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 10:59 AM
Do we have any chance of calling user space callback function from kernel space? ravishankar.g Linux - Newbie 1 09-22-2009 08:14 PM
how to call socket prog code written in user space from kernel space???HELP kurt2 Programming 2 07-15-2009 10:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:41 AM.

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