LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Netlink Example for Linux 2.6 (https://www.linuxquestions.org/questions/programming-9/netlink-example-for-linux-2-6-a-722672/)

saurabhchokshi 04-30-2009 05:57 AM

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

chandan_raka 07-17-2009 05:14 AM

Try these


kerneltrap.org/node/5218
www.wlug.org.nz/LinuxNetlinkSocketExample

saurabhchokshi 07-17-2009 11:07 PM

Is this code works with Linux Kernel 2.6?

chandan_raka 07-18-2009 02:48 AM

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


All times are GMT -5. The time now is 11:57 AM.