kernel application

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
janhavi

kernel application

Post by janhavi »

hi

Is it possible to run an application in kernel space? without using the shell. particularly in linux
thanks
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:kernel application

Post 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.
proxy

Re:kernel application

Post 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
Legend

Re:kernel application

Post 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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:kernel application

Post by Pype.Clicker »

Post Reply