Re: Named Semaphorse
Re: Named Semaphorse
- Subject: Re: Named Semaphorse
- From: Terry Lambert <email@hidden>
- Date: Thu, 24 Apr 2008 11:19:10 -0700
On Apr 24, 2008, at 9:57 AM, Duane Murphy wrote:
Is it possible to use named semaphores to "communicate" from the
kernel
to user space?
No.
We have an application where on another platform (Windows), the kernel
module uses a named semaphore to trigger a user space application.
Is there anything like that for Mac OS X?
Ideas, recommendations?
IOUserClient is typical:
<http://developer.apple.com/samplecode/SimpleUserClient/index.html>
You can also use control sockets:
<http://developer.apple.com/documentation/Darwin/Conceptual/NKEConceptual/control/chapter_4_section_2.html
>
Or you can use an ioctl()/fcntl() into your driver. See also:
<http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming/boundaries/chapter_14_section_3.html#//apple_ref/doc/uid/TP30000905-CH217-TPXREF110
>
-- 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