LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-17-2006, 12:34 AM   #1
yugandhar
LQ Newbie
 
Registered: Jun 2006
Posts: 28

Rep: Reputation: 15
how to send events from kernel module to user space process


Hi all,
I am writing a kernel module. I want to send an event from kernel module to user space how can i do this can any one give me some examples. Presenty i am sending signals from kernel module to user space process but i want events to be sent because there are only two user defined signals SIGUSR1 and SIGUSR2 if i want to have more what i have to do.
 
Old 12-15-2007, 03:51 AM   #2
khaled_h
LQ Newbie
 
Registered: Mar 2007
Distribution: Fedora Core, SuSE, RH
Posts: 6

Rep: Reputation: 0
User and kernel level communication

Hi,

I think you can use netlink sockets. This is a new and nice way to enable user and kernel levels communication. Of course, there are many other ways available.

Netlink is like normal sockets by it used to send messages between user applications and kernel and vice versa.

Here is link:
http://www.linuxjournal.com/article/7356

Regards,
Khaled
 
Old 02-21-2011, 10:39 AM   #3
Soniferiel
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by yugandhar View Post
Hi all,
I am writing a kernel module. I want to send an event from kernel module to user space how can i do this can any one give me some examples. Presenty i am sending signals from kernel module to user space process but i want events to be sent because there are only two user defined signals SIGUSR1 and SIGUSR2 if i want to have more what i have to do.
Hi,

In my case I just need to send one signal to my application (SIGUSR1), as you already have get this working, do you still have code snippet on both side kernel module code and user application code? From my researches on the web, I'm little bit confused on how to get this working: must I retrieve the pid of my user application and if so how? (through ioctl or something else?), should I use send_sig or kill_proc or something else?

I would really appreciate your help. Thank you in advance.
 
  


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
events/0 process usage rioch Linux - Kernel 11 08-28-2010 01:56 PM
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 12:32 PM
Command line program to send X events? drj000 Linux - Software 0 09-07-2005 05:48 PM
User Space - Kernel Space basu_arani Programming 3 05-25-2004 11:46 AM

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

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