mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Killing a User thread from another User Thread
@ 2007-05-01  4:58 Bhuvan Kumar MITTAL
  0 siblings, 0 replies; only message in thread
From: Bhuvan Kumar MITTAL @ 2007-05-01  4:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: 'Bhuvan Kumar MITTAL'

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-01  4:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-01  4:58 Killing a User thread from another User Thread Bhuvan Kumar MITTAL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®