LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-30-2009, 05:57 AM   #1
saurabhchokshi
Member
 
Registered: May 2007
Posts: 35

Rep: Reputation: 15
Netlink Example for Linux 2.6


Hello,

Can anyone provide me the simple example to send the message from kernel mode to userpace application and vice versa?

Thanks in Advance!!!

Saurabh Chokshi
 
Old 07-17-2009, 05:14 AM   #2
chandan_raka
Member
 
Registered: Apr 2005
Location: BC
Distribution: Centos
Posts: 34

Rep: Reputation: 16
Try these


kerneltrap.org/node/5218
www.wlug.org.nz/LinuxNetlinkSocketExample
 
Old 07-17-2009, 11:07 PM   #3
saurabhchokshi
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Is this code works with Linux Kernel 2.6?
 
Old 07-18-2009, 02:48 AM   #4
chandan_raka
Member
 
Registered: Apr 2005
Location: BC
Distribution: Centos
Posts: 34

Rep: Reputation: 16
Yes Indeed. Please check these links as well

http://www.linuxjournal.com/article/7356
http://qos.ittc.ku.edu/netlink/html/node7.html
http://www.linuxfoundation.org/en/Ne..._Netlink_HOWTO

Earlier I was trying to send the data from kernel to user using this. But now I am trying do the same using ioctl/proc.

Got some success, however, still struggling
 
  


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
Broadcom Netlink Not working with suse linux srinivasan.mit Linux - Server 0 07-25-2007 07:07 AM
is it possible to get interface up/down event notifications thru netlink in linux pccyang Programming 1 11-19-2004 07:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

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