title: Adding to a wait queue
body: <p>I was wondering how I add a <code>task_struct</code> to a Wait Queue in a linux kernel module? For example if I want to add a <code>task_struct</code> called task to a <code>WaitQueue</code>, what function could I use to achive this?</p>
  
  <p>I understand how to add the current module to a wait queue but I want to add other running processes to a queue, for example if vi was running, I need to add that to a wait queue.</p>