Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-19-2011, 11:49 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 19

Rep: Reputation: Disabled
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 .


Attached Thumbnails
Click image for larger version

Name:	requirement.JPG
Views:	4
Size:	20.8 KB
ID:	8205  
Old 10-21-2011, 12:07 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
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

--- rod.

Last edited by theNbomr; 10-21-2011 at 12:09 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial port output buffer lag morpheusss Linux - Software 1 03-24-2011 01:11 PM
Serial port UART FIFO buffer override Mar_kas Linux - Hardware 2 05-13-2010 01:47 AM
expecting Serial port output to a buffer nathan Programming 5 09-22-2009 04:29 PM
serial port not filling buffer entirely windell Programming 1 08-05-2008 11:12 AM
Serial Port Buffer Overrun damiendusha Linux - Hardware 1 06-22-2006 03:56 AM

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration