Re: How Kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 24 May 2005 01:16, jhoney jhoney wrote:
> Hello All,
> 
> When application runs ,it can not access the kernel memory but when 
the module for the corresponding application runs in kernel mode , it 
has access to kernel memory.

A module doesn't run (as an independent entity like a process).  A
modules is just code that is dynamically loaded into the kernel.

> My question is what made to access the kernel memory module which 
could not be done by an application.

The CPU, the MMU,...

A normal process runs in a non-privileged mode.  The CPU will
not let it run certain instructions.  When an interrupt is received,
the CPU will switch to a privileged mode and jump to the interrupt
handler.  This is true even for software interrupts that system calls
generate.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux