LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
Virtual disk/node port for serial buffer


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
Attached Thumbnails
Click image for larger version

Name:	requirement.JPG
Views:	13
Size:	20.8 KB
ID:	8205  
 
Old 10-21-2011, 11:07 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

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

Last edited by theNbomr; 10-21-2011 at 11:09 AM.
 
  


Reply



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 12:11 PM
Serial port UART FIFO buffer override Mar_kas Linux - Hardware 2 05-13-2010 12:47 AM
expecting Serial port output to a buffer nathan Programming 5 09-22-2009 03:29 PM
serial port not filling buffer entirely windell Programming 1 08-05-2008 10:12 AM
Serial Port Buffer Overrun damiendusha Linux - Hardware 1 06-22-2006 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 AM.

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