Alex Rivera | Logout

When should I write a Linux kernel module?

Asked 2008-09-29T14:52:42.227
38

Some people want to move code from user space to kernel space in Linux for some reason. A lot of times the reason seems to be that the code should have particularly high priority or simply "kernel space is faster".

This seems strange to me. When should I consider writing a kernel module? Are there a set of criterias?

How can I motivate keeping code in user space that (I believe) belong there?

Edit
Report

1 Answer

8

I'm not sure the question is the right way around. There should be a good reason to move things to kernel space. If there aren't any reasons, don't do it.

For one thing, debugging is made harder, and the effect of bugs is far worse (crash/panic instead of simple coredump).

answered 2008-09-29T14:59:27.843

Your Answer