lkml.org 
[lkml]   [2002]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectNetlink
Date
Hello,

Not sure if this is the right list to ask this question....

While I was trying to evaluate what is the best method to get the data from
Kernel-Space to User-Space and vice-versa I found that two techniques are
available:

-IOCTL
-Netlink Sockets



I would like to know which one would be used in what situation?
Is there a (buffer, message)data size limit for the those two?

Seems that if one wants to get data from the kernel which is triggered by
some interupt IOCTL cannot be used as IOCTL is invoked from the User-Space
while netlink socket can listen for the kernel event to take place and then
simply read from the socket. Correct?


The other issue is that user-space part of Netlink socket is trivial to use
while kernel part is nightmare. So I would appreciate any help if someone
can send me sample module that both sends and receives "Hello" message
to/from the Netlink Socket

Rade

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.029 / U:2.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site