On Tue, Feb 08, 2000 at 12:55:48PM +0000, Stephen Shirley mentioned:
> I'm trying to write a kernel module for
> my final year project. The kernel module needs
> to communicate with a user space program. The
> link needs to be two way. How do I go about this?
> I know you can use pipes, fifos, ipc, semaphores
> and shared memory between user processes,
> but are any of those available to the kernel?
Have a look at the source for PerlFS - it's a kernel module that talks to
a userspace perl program, which implements a filesystem. Should have
everything you need to know in it.
If you aren't passing that much stuff back and forwards, a device file
is often an easy way to go.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!