Hi All,
I am visulaising a one of the use of char device driver.
I need to write a char device which will prompt me by printing on my pseudo terminal if there is any zombie element in a runqueue on a specific processor.
Is it possible to keep a track on runqueue through a function defined in a char device ? If I provied the information about zombies via /proc filesystem, then a user needs to read file again and again and would not
be able to keep a constant watch on the zombies. Is it possible that my char device goes to sleep on a waitqueue and wakes up's only when a zombies process has come in a runqueue and then after giving details
of that zombie process, my char device driver again goes to sleep and wait for new zombies in a runqueue.
Could anyone guide me whether the above thought can be implemented.
I have gone through ksyms.c but the kernel doesnot exposes the functions of runqueue.
Regards
Dinesh