Netlink

Radivoje Todorovic (radivojet@jaspur.com)
Wed, 23 Jan 2002 16:45:04 -0600


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/