On 9/16/2010 11:56 AM, jhoni maux wrote:
HI,

Now i'm learn kernel module programming, but i'm still confuse about
user space context and kernel space context.

Here I think 'user space context' and 'user space' implies
the same thing.


anyone know about what
the different between user space and kernel space and how to see the
underlaying  between user space and kernel space ??

So...

In 'Kernel space' the running program can access all the
CPU instruction set. While in user space the programs
has access to limited CPU instruction. This is accomplished
through setting proper privilege bits in the Segment selector
and Descriptors. For example 'user space' program cannot issue
cli instruction...

CPU designers also call 'kernel space' as Ring0. while
'user space' is known as Ring3.

Thanks

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to