Re: your mail

From: Jesper Juhl
Date: Sun Jan 11 2009 - 01:52:28 EST


On Sat, 10 Jan 2009, Jose Luis Marchetti wrote:

> Hi,
>
> I would like to open/read/write/close a regular file from my device
> driver.

That's probably a bad idea and what you really want to do is use procfs,
sysfs, debugfs, relayfs, module parameters or similar.

Take a look here:
http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad


--
Jesper Juhl <jj@xxxxxxxxxxxxx> http://personal.chaosbits.net/
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/