LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Virtual disk/node port for serial buffer (http://www.linuxquestions.org/questions/linux-newbie-8/virtual-disk-node-port-for-serial-buffer-908987/)

balaqemu 10-19-2011 10:49 AM

Virtual disk/node port for serial buffer
 
1 Attachment(s)
Hi,

I want to create a simple application(showed in the attachment ) .

I need to create a virtual node and write data to that and other program should read the data whenever new data present at the node .

I want to implement this in same way as Virtual comport(ttyS0) work ...

I'm not getting any Idea how to start this .
pls provide some suggestion to start this .

rgds

Bala

theNbomr 10-21-2011 11:07 AM

You are describing 'Interprocess Communications' (IPC) in general, and probably message queues/mailboxes more specifically. In Linux, there are at least two existing standard implementations of these: POSIX, and System V. Both provide APIs for efficient and reliable IPC, and are widely documented.
System V IPC
POSIX IPC

There are other APIs and schemes that provide similar functionality. I don't think it makes sense to attempt to create your implementations of these systems, but rather to build your application(s) around the existing systems. For a very useful primer on the subject generally, I recommend Beej's Guide to Unix Interprocess Communication

--- rod.


All times are GMT -5. The time now is 04:41 PM.