<div>Hi,</div><div> </div><div>I have a douby regarding  kthread working. </div><div> </div><div>How can we check that a kthread is working or exited. </div><div>It  may exit beacuse of call to do_exit in threadfn or callling kthread_stop function on task_struct (correct me if i am weong). </div>

<div> </div><div>I want to check that if kthread has finished its work or not. </div><div>If not then what should I call so that kthread gets killed. </div><div>If it is finshhed then which function I should call so that as to free kthread resources.</div>

<div> </div><div>Regards,</div><div>Gaurav Mahajan.</div><div> </div><div> </div><div> </div><div> </div><div> </div><div> </div><div> </div>