I'm just starting to learn the tricks for creating a kernel module on Linux 2.6. What I want to do is 3 kernel threads, called subordinates, that must send data to the fourth kernel thread, called master, and receive their responses. Slaves can request at any time, which means that I will need some kind of queue structure and a way to redirect responses to the correct stream.
At first I looked at the implementation of my own queue structure for the incoming request queue, but how can I signal this to the host? I do not want the wizard to continue polling (as is the case with direct cells / semaphores). I have a feeling that there is a better way to communicate between threads.
Due to the lack of documentation (and, admittedly, killer search skills), I donβt understand how to implement this. Can you point me in the right direction?
Ram source share