Virtual disk/node port for serial buffer
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 .
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
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
|All times are GMT -5. The time now is 05:34 AM.|