I've read lots of examples and questions here about how to have a user-space program communicate with a kernel module via the netlink interface. I've also read about how netlink and generic netlink can be used for kernel to kernel communications. I have not found any code to demonstrate this capability. If netlink is not the correct approach, what is?
Here is the generic netlink documentation that I have found:
http://www.linuxfoundation.org/collaborate/workgroups/networking/generic_netlink_howto
Figure #6 depicts an architectural overview and mentions that:
3) The Generic Netlink users who communicate with each other over the Generic Netlink bus; users can exist both in kernel and user space.
How do I go about being a user of the generic netlink bus if the 'user' is in kernel space?