Q: I'm writing a Mac OS X kernel extension and I
want to use kernel events (as defined in
<sys/kern_event.h> to talk to a daemon process. I'm
worried that my use of kernel events might conflict with
other kernel extensions. What should I set the
vendor_code field of the
kern_event_msg structure to?
A: This field should either be set to
KEV_VENDOR_APPLE (1) for Apple-defined events,
or a registered creator code for third party events. If your
product already has a registered creator code, you can use
that. Otherwise you should register one using the
Creator Code Registration page
on the Apple developer web site.
[Sep 14 2001]
|