Re: Semaphore questions?
Re: Semaphore questions?
- Subject: Re: Semaphore questions?
- From: Michael Smith <email@hidden>
- Date: Wed, 6 Oct 2010 20:05:50 -0700
On Oct 6, 2010, at 4:33 AM, sheetal phirke wrote: Hello All,
I am newbie in mac. i have query about following things with semaphore
i am trying to use mach semaphore in IOKit.
Stop right there.
This is Mac OS X. It is not Windows. It is not Linux. It is not eCos or VxWorks.
Counted semaphores do not feature heavily (in fact, at all) in the I/O Kit programming model.
The Mac OS X user space/driver interaction model does not feature shared locks.
Transfer of ownership of shared resources between user space and the kernel is normally accomplished using message passing, e.g. via one of the IOUserClient method calls.
You should spend some time coming to grips with the way that I/O Kit drivers are structured. It may seem like more work up front, but in the long run you will do much better working with the system than against it. You should most definitely not be trying to force-fit another operating system's driver model into I/O Kit.
= Mike
-- Excellence in any department can be attained only by the labor of a lifetime; it is not to be purchased at a lesser price -- Samuel Johnson
|
_______________________________________________
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