ADC Home > Reference Library > Technical Q&As > Darwin > Kernel >

Avoiding Kernel Event Conflicts


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]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.