Re: Implementing Mutex in IOKIT driver
Re: Implementing Mutex in IOKIT driver
- Subject: Re: Implementing Mutex in IOKIT driver
- From: Brian Bergstrand <email@hidden>
- Date: Sat, 13 Aug 2005 11:44:34 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You didn't specify what kernel version, so I'll assume 8. All of the
primitive mach lock functions are declared in <kern/locks/h>. IOKit
locks are just wrappers around these.
On Aug 13, 2005, at 6:45 AM, santosh katvate wrote:
Hello everybody
I want to know how to implement mutex in case of driver.
i am able to trap read routine in my driver(which has
ioblockstoragedriver as its base class) but for some of the read
request i want to do some processing for which i want that only after
one request is completed ,that the second request should be processed
Till that time other request should be in wait state.
What are the ways in which i can handle this situation.
I am using pair of IOLOCK and IOUNLOCK function but it results in
system hang
Thanking in advance
Santosh k
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFC/iN8edHYW7bHtqIRAhP9AKD02Mpzp2z42Ntd9IvWFCOwTTTsZACeMYyZ
NVvFBNgTSRndi6A543vV9GM=
=3KzW
-----END PGP SIGNATURE-----
_______________________________________________
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