LinuxQuestions.org
Help answer threads with 0 replies.
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 10-17-2007, 08:12 AM   #1
mbm
LQ Newbie
 
Registered: May 2004
Distribution: mandrake 10
Posts: 1

Rep: Reputation: 0
Question kernel user space communication


Hi
I need to know how to communicate between kernel module and userspace application

I found that it is possible to communicate
* using devices /dev/xxx ( open , read, write, clode , ioctl)

* using /proc filesystem

* using netlink

is there another mean of communication especially to notify userspace about event as signal or inotify ?
 
Old 10-17-2007, 08:21 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
The kernel documentation talks a lot about this in various places, and the best way to consider this sort of issue is to browse through the drivers and so-on to see how they do it. (For example, notice how udev communicates with its helper daemon.)

Also consider what might be most useful for your programs. It's very nice when a program can simply do a blocking-read or blocking-write to a "device," because any ol' program can do that. And it's also very easy, on the kernel side of things, to "write something."

The entire notion of the "/proc" and "/sys" filesystems is brilliant, because it lets "any ol' program" retrieve, and set, all sorts of funky information just by reading and writing to "a file."
 
  


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
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 12:32 PM
Communication between the Kernel- and User-Space Siva4Linux Linux - Kernel 3 11-30-2006 03:54 PM
How to share data b/w user space and kernel space nandac Linux - Kernel 1 11-28-2006 10:15 PM
kernel and user mode communication yhus Linux - Kernel 5 06-03-2006 10:00 AM
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 06:49 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