Page 1 of 1

kernel application

Posted: Mon Aug 30, 2004 5:47 am
by janhavi
hi

Is it possible to run an application in kernel space? without using the shell. particularly in linux
thanks

Re:kernel application

Posted: Mon Aug 30, 2004 6:52 am
by Pype.Clicker
User-level code and kernel-level code have different expectations, so i doubt it'll work (e.g. your application is calling malloc() and the kernel only has kmalloc which doesn't work the exactly same way)

what you can do is using kernel modules.

Re:kernel application

Posted: Mon Aug 30, 2004 8:10 am
by proxy
just so you know, there is a project (i forget the name) which will execute any arbitrary user mode application in kernel mode on linux.

I read about it in linux journal and they demonstrated vmware in kernel mode and noticed a sizeable increase in performance due to far less switches in and out of kernel mode.

proxy

Re:kernel application

Posted: Mon Aug 30, 2004 8:42 am
by Legend
I guess that is more the exception then the rule (I mean the speed) ...
Compare khttpd (which is not in 2.6 anymore) and Apache 2, where I have heard they are basically equal.

Re:kernel application

Posted: Mon Aug 30, 2004 10:59 am
by Pype.Clicker