Hi, How the linux kernel runs in the system after spawning the init and mounting the root FS. Does it run as some background process ? How it serves the system calls etc. ? Regards Kapil
On Tue, 19 Feb 2013 10:50:26 +0530, kapil agrawal said:
How the linux kernel runs in the system after spawning the init and mounting the root FS. Does it run as some background process ?
No. You probably want to get some basic knowledge about operating systems in general. http://en.wikipedia.org/wiki/Operating_system as you appear to be confused regarding the basic concepts of an operating systems kernel.
How it serves the system calls etc. ?
There's about 5 different answers to that, depending on how in-depth you want the details, but I suspect that none of them will make any sense to you until you get a better grasp on the basics....
Kapil It runs as Background process in the kernel memory (init-process). When system calls is coming from User space/Land, there will be context switch from user to kernel space happens. I think kernel main thread serving those system calls. On Mon, Feb 18, 2013 at 9:20 PM, kapil agrawal <kapil.agrawal81@gmail.com>wrote:
Hi,
How the linux kernel runs in the system after spawning the init and mounting the root FS. Does it run as some background process ? How it serves the system calls etc. ?
Regards Kapil
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, S. Sengottuvelan.
Do you mean process with PID 0 is the one, which runs in the background and serves the request from userland and goes to cpu_idle() if nothing to run. -kapil On Tue, Feb 19, 2013 at 11:23 AM, Sengottuvelan S <sengottuvelan.s@gmail.com
wrote:
Kapil
It runs as Background process in the kernel memory (init-process). When system calls is coming from User space/Land, there will be context switch from user to kernel space happens. I think kernel main thread serving those system calls.
On Mon, Feb 18, 2013 at 9:20 PM, kapil agrawal <kapil.agrawal81@gmail.com>wrote:
Hi,
How the linux kernel runs in the system after spawning the init and mounting the root FS. Does it run as some background process ? How it serves the system calls etc. ?
Regards Kapil
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, S. Sengottuvelan.
On Tue, 19 Feb 2013 12:01:55 +0530, kapil agrawal said:
Do you mean process with PID 0 is the one, which runs in the background and serves the request from userland and goes to cpu_idle() if nothing to run.
No. Large parts of the kernel run in kernel mode, but using the 'struct task' of the related userspace process (in particular, most system calls work this way). Other large chunks borrow the 'struct task' and run under it just so there's *a* process running. And parts aren't in process context at all, but interrupt context (so they aren't running as process code at all).
participants (3)
-
kapil agrawal -
Sengottuvelan S -
Valdis.Kletnieks@vt.edu