unix DECLARE_WAIT_QUEUE_HEAD (var) var prototype?
Posted
by yoavstr
on Stack Overflow
See other posts from Stack Overflow
or by yoavstr
Published on 2010-05-22T12:38:14Z
Indexed on
2010/05/22
12:40 UTC
Read the original article
Hit count: 175
unix
|linux-kernel
hello i want to work with 2 queue in the module where i change my pointer to them therefore i need to use :
//declartion wait_queue_head_t **currentQ; DECLARE_WAIT_QUEUE_HEAD (readWaitQ1); DECLARE_WAIT_QUEUE_HEAD (readWaitQ2);
if(condition){ currentQ = &readWaitQ1; }else{ currentQ = &readWaitQ2; }
but i get incorrect type for wake_up an other stuff using the queue. even thought i google it i couldnt find an answer can someone just give me the prototype needed?...
© Stack Overflow or respective owner