[<prev] [next>] [day] [month] [year] [list]
Message-ID: <03f701c78bad$5c589220$142ec70a@dlh.st.com>
Date: Tue, 1 May 2007 10:28:29 +0530
From: Bhuvan Kumar MITTAL <bhuvan.mittal@...com>
To: <linux-kernel@...r.kernel.org>
Cc: "'Bhuvan Kumar MITTAL'" <bhuvan.mittal@...com>
Subject: Killing a User thread from another User Thread
Hi.
I am working on an audio device driver development on Linux (sh4 architecture). I have a userthread which makes ioctl calls to the kernel and once it reaches inside the kernel it waits on a semaphore. It then does some work inside the kernel and continuously keeps looping between the kernel and user space in an endless while loop.
I want to kill that thread from another user thread while the former is waiting on a semaphore in kernel (which it will never get) coz I want a clean exit of my driver. Please suggest me a way. I did try the use of pthread_cancel, but that is possible only if the target thread is executing in user space and making use of a pthread_testcancel call (with cancelability enabled ofcourse).
Kindly suggest something.
Regards,
Bhuvan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists