I have been trying to get the following to work:
atomic_t stop;
struct wait_queue wait_queue_stuff, another_wait_queue;
/* Initialized before use with init_wait_queue() */
kernel_thread()
{
for(;;)
{
if(atomic_read(stop))
interruptible_sleep_on(_queue_stuff);
I have been trying to get the following to work:
atomic_t stop;
struct wait_queue wait_queue_stuff, another_wait_queue;
/* Initialized before use with init_wait_queue() */
kernel_thread()
{
for(;;)
{
if(atomic_read(stop))
interruptible_sleep_on(wait_queue_stuff);
2 matches
Mail list logo