Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-21-2008, 02:23 AM   #1
LQ Newbie
Registered: Jul 2008
Location: Bangalore,India
Posts: 16

Rep: Reputation: 0
Kernel Module to send Message to User Space Application

Hi all,
I want write kernel module to send message to user space application(usa).
Earlier i have written using netlink sockets, In this case first User space application sends message by filling its pid to kernel module, using
this pid kernel module can reply.

I want write module which doesn't know pid of usa,but has to send message.
(Kernel module has initiate sending message).

Is there any other concept(other than netlink socket) to achieve above.

Old 08-21-2008, 11:17 PM   #2
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
The kernel module has to know where to send a message to - who will receive it? If you don't provide a PID, then how are you going to know who to send the message to? You could know the name of the program and search the process list, then send the message to that process, but how else would you do it?

Further, if you search for a given program name from a kernel module, then you are defacto implementing policy in your kernel driver - and that is generally a very bad idea.
Old 08-22-2008, 01:48 AM   #3
LQ Newbie
Registered: Jul 2008
Location: Bangalore,India
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for your 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
how to send events from kernel module to user space process yugandhar Linux - Kernel 2 02-21-2011 11:39 AM
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 01:32 PM
How to send message to other user(online) on the text mode of Linux ??? owen Linux - General 2 01-10-2004 02:20 PM

All times are GMT -5. The time now is 06:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration