Re: Using semaphores in kernel level driver
Re: Using semaphores in kernel level driver
- Subject: Re: Using semaphores in kernel level driver
- From: Terry Lambert <email@hidden>
- Date: Mon, 2 Jan 2006 17:23:43 -0800
On Dec 23, 2005, at 5:21 AM, Yogesh P wrote:
Hi Folks,
I will have to use semaphore to make synchronization between the
threads.
After creating a thread using IOCreateThread(), I will have to put
that
thread in a wait state and wake up that thread after receiving some
interrupt.
Is there any sample driver code on developer site which I can refer
for
using semaphore for synchronizing threads.
You really don't want to do this, but if you are insistent on not
doing things the right way, there's documentation on Mach semaphore
primitives at:
<http://darwinsource.opendarwin.org/10.4.3/xnu-792.6.22/osfmk/man/>
Don't blame us when your product causes someone's machine to appear to
lock up (there are only 7 places Mach semaphores that are used
internally in the kernel, and one of those is in IOCommandQueue).
You should really use IOCommandPool instead.
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden