LinuxQuestions.org
Help answer threads with 0 replies.
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


Closed Thread
  Search this Thread
Old 07-29-2015, 06:33 PM   #1
david_8274
Member
 
Registered: Jun 2013
Location: California
Distribution: Ubuntu, Fedora
Posts: 75

Rep: Reputation: Disabled
Getting hardware interrupt in user-space program


Hi,

I am working on an embedded Linux project. In the project, I wish to get a GPIO interrupt in my user-space program. I read about using UIO to get kernel interrupt from user-space. However, it seems that I will have to do a blocking call, such as read(), poll(), to wait for interrupt happens. But I don't want to block and wait. Is there a solution would let my program act like a bare-metal project, where I attach an interrupt handler to the system and free to preform other tasks until an interrupt happens and the program jumps to the ISR?

Thanks,
Wei Xu
 
Old 07-29-2015, 08:56 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closing the original in favour of the more sensibly placed dupe:
http://www.linuxquestions.org/questi...7/#post5398077
 
  


Closed Thread



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
[SOLVED] Catch LPT interrupt in user space. LEICIF Linux - Newbie 9 06-25-2011 11:15 AM
Mechanism for interrupt report to user space zvivered Linux - Embedded & Single-board computer 0 08-11-2009 03:59 PM
interrupt with push buttons through Linux - driver or user space? lila780 Linux - Newbie 1 12-30-2008 05:31 AM
how to trensfer data from user space to interrupt handler? rose_hatami Programming 4 12-19-2007 05:17 AM
can interrupt handler call user space function? pot_po Programming 0 11-07-2002 09:32 PM

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

All times are GMT -5. The time now is 08:51 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
Open Source Consulting | Domain Registration