Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-05-2005, 08:19 AM   #1
Registered: Feb 2005
Posts: 91

Rep: Reputation: 15
notify user space application from the kernel space


I need to write a device driver to monitor the battery. The driver will capture the interrupt whenever the battery is removed. My question is how to notify the user application from the interrupt handler? May I send a signal to all of applications? Or only send the signal to the specific application and how?

Old 02-18-2006, 07:08 AM   #2
LQ Newbie
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0

The application intends to reveive notification has to request for it..You have to use Async notification given by the fasync structure. See the fasync_struct and an example of using this from the net.

Old 06-22-2009, 01:32 PM   #3
Registered: Jun 2008
Posts: 82

Rep: Reputation: 15
Try using netlink socket..


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
callback or notification from kernel to user space yhus Programming 5 09-18-2005 10:41 PM
Calling User-space program functions from Kernel modules shivanu Programming 1 03-05-2005 03:11 PM
user space daemons, kernel patches, modules ajitkth Linux - General 0 02-21-2005 09:01 AM
User/Kernel Space Comms under Redhat 9.0 snigglyfox Programming 3 09-07-2004 06:24 AM
User Space - Kernel Space basu_arani Programming 3 05-25-2004 12:46 PM > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration