Messages in this thread | | | From | Christian Vogel <> | Date | Sat, 4 Jan 2003 17:27:11 +0100 | Subject | Re: writing from kernel |
| |
Hi,
On Sat, Jan 04, 2003 at 04:02:55PM -0000, anil vijarnia wrote: > can anyone tell me how to write into i file from kernel space. > i tried sys_open,sys_write functions bbbbbut they don't work > from my module.
As far as I understand the general oppinion on this list :-) the preferred method is to have your module preset a character-device to userspace. Then use a small program to do the I/O.
This normally keeps your kernel module simple and allows for arbitrary compex I/O in userspace.
Chris
-- No keyboard present Hit F1 to continue Zen engineering? -- Jim Griffith - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |