Linux Kernel

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Feb 19 02:25:54 EST 2013


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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130219/25a2b762/attachment.bin 


More information about the Kernelnewbies mailing list