KernelNewbies:

Why writing files from the kernel is bad ?

The question "how to I open/read/write files from the kernel ?" is often asked on the kernelnewbies mailing list. However, the question cannot really be answered: opening, reading and writing files from within the kernel is usually a bad idea, for several reasons:

There are several ways to exchange informations between userspace and the kernel, and the one to use really depends on what you want to do:

Using /proc is not anymore a good idea these days, except if you want to export information related to processes.

KernelNewbies: FAQ/WhyWritingFilesFromKernelIsBad (last edited 2006-08-01 20:36:38 by humanoidz)