Re: Implementing Mutex in IOKIT driver
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. 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 This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Bergstrand