Linux kernel /proc FIFO/pipe?

Instead of making a named pipe, what you want to do is create a "Character device". If you want simple interaction or streaming data from kernel to userspace and back, this is the usual method. I'd recommend looking up similar devices in the Linux kernel and seeing what they do.

I think the way this is generally done is to use a netlink socket; one or more userspace processes can bind to a "netlink" address, and your kernel facility can broadcast messages to any / all of them as necessary. This is certainly what some things do, the networking subsystem especially. It is possible for a userspace program to watch for changes in network interfaces (e.g. New IP addresses, link status change) using this method.

I agree with Paul—implementing a character device is probably the best way to go. Maybe looking at the code implementing /dev/kmem or /dev/rtc0-9. Also, the serial drivers implement their drivers using character devices.

Just think of it as a virtual device. :-).

Proc isn't actually a real file system; it's constructed by the kernel based on what's currently running. I don't think you can create named pipes in it.

You can in fact create them (I did), though I'm not sure how functional they are. – Dan Fego Nov 24 '08 at 4:35.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions