Hello,
I am using a kernel thread in a driver I wrote to implement the notion of a producer/consumer relationship in an i/o request queue. The device is a polled device. Tasklets didn't seem to be what I needed. The kernel thread works but not without problems.
1) Are kernel threads pre-emptible? Have time quantum? (When I start a long i/o request in the driver my mouse and kde lock up. After done, then OK).
2) I have looked at other example drivers in Linux driver tree that use kernel_thread like the md driver. If I do a shutdown of Linux without first unloading my driver, then I get infinite loop in kernel thread. Of course, if I do a driver unload, then things are OK. How can I cause a kernel thread to terminate at shutdown?
3) Where ie the kernel_thread "flags" parameter described?
Thank you, Vasili N Galchin
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD