LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2009, 05:45 PM   #1
nickolais
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 1
can I call kill_fasync( ) from interrupt context


Hello,
I have a custom driver for some custom hardware. When my driver receives an interrupt I would like to notify a sigaction( ) registered application that there is data available for reading or writing. Can I do this from my ISR, or do I need to spin off a worker to perform this. Essentially, I need to know will kill_fasyn( ) sleep. Are there any web resources that list what functions are callable from ISR.

Thanks!
 
Old 03-12-2009, 01:08 PM   #2
nickolais
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 1
resolved - can I call kill_fasync( ) from interrupt context

I am happy no one answered this for me becuase I was able to find the answer after I searched the kernel sources. Honestly, I am not usually a post first, look later kind of person.

Right above the kill_fasync() function prototype there is a comment stating that the function "/* can be called from interrupts */".

Bye.
 
Old 06-04-2009, 08:47 AM   #3
kapil_181
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
I have a problem calling kill_fasync from interrupt contex

Hi,

I am trying similar thing here. trying to call a kill_fasync from an interrupt context, in order to wake up a user land application at interrupt. It works without an problem at first kenel module run.

But when I reload my kernel module, the SIGIOs from kill_fasync are never reported to user space. But this is only happening with ISR. The other kernel handler functions like timer is able to kill_fasync without problem.

Some helping directions will be much appreciated.

Thanks
 
  


Reply


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
System call Interrupt raghu2383 Programming 4 08-27-2008 05:32 AM
Thread context switch causes lost interrupt EmbeddedSteve Linux - Kernel 1 09-01-2006 03:45 PM
look at how i modify the system call interrupt vector qqrilxk Programming 3 03-21-2005 01:13 AM
** WLAN busy-sleeping in interrupt context! adelaideyip Linux - Wireless Networking 0 08-20-2004 03:55 PM
can interrupt handler call user space function? pot_po Programming 0 11-07-2002 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:09 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