LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 04-23-2007, 04:33 PM   #1
pierre-luc
LQ Newbie
 
Registered: Oct 2004
Location: Montreal
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
serial port interrupts in user space


Could a user space program be driven by hardware interrupts ? I'm looking of an efficient way to make my program (user space) react to some data written on the serial port by device. Otherwise... I'd maybe have to code my own driver that calls the other process by signals.

This is somewhat related to my previous (resolved) thread http://www.linuxquestions.org/questi...d.php?t=547580 but this is another matter...
 
Old 04-24-2007, 07:38 AM   #2
Kristofer
LQ Newbie
 
Registered: Nov 2005
Location: Sweden
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
This might get you going

Take a look at the following thread, seems pretty much like the question you are asking.
http://kerneltrap.org/node/7580

A simple example of just getting a notice on when new data has arrived.
3.3 Asynchronous Input in http://www.faqs.org/docs/Linux-HOWTO...ing-HOWTO.html

/Kristofer
 
Old 04-24-2007, 10:48 PM   #3
pierre-luc
LQ Newbie
 
Registered: Oct 2004
Location: Montreal
Distribution: Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 15
It seems to be exactly what I was searching for.

Thank you.
 
  


Reply

Tags
interrupts, kernel, space, user


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
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 10:32 PM
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 02:15 AM
single-user mode through serial port? Buurzgoth Linux - Software 5 01-22-2006 05:17 AM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 09:07 PM
Need to disable timer or all interrupts from user space G35Coupe Linux - General 0 11-16-2004 01:31 AM


All times are GMT -5. The time now is 10:25 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration