I need a IPC between kernel and user-space communication. The kernel module should first initiate the communication to user-space module.
I looked into various methods of kernel to user-space communication like IOCTL, char device, Netlink sockets. Because I need kernel to initiate the communication I dropped IOCTL and char device because the control starts from user-space. I only found Netlink sockets with full duplex communication.
But I was not able to find a simple example program in which the kernel originates the call to user-space first. I was only able to find example for User-space originating the call. Can you please point me to books or examples that shows how kernel can initiate a Netlink socket communication to user-space. Thanks!