Re: Personality?
Re: Personality?
- Subject: Re: Personality?
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 2 Nov 2007 13:29:04 +0100
On jeudi, novembre 1, 2007, at 11:41 PM, Dean Reece wrote:
On Nov 1, 2007, at 3:20 PM, Stéphane Sudre wrote:
What's a personality supposed to be for a StartupItem or Kernel
Extension?
For kexts, it is documented here: (I just went to
<http://developer.apple.com> and searched for "Personality")
<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/
IOKitFundamentals/Matching/chapter_5_section_2.html>
Basically, it is a dictionary in your kext's plist that is used to
drive IOKit's passive matching. Also, when the driver goes through
active matching, the contents of the personality is passed to the
driver as its initial property list.
Note that any given kext can have several personalities, each offering
different matching criteria, and possibly other data left as hints to
the driver object that gets run later. This is why they are called
"personalities", since one kext can match on several different kinds
of devices and can alter its behavior based on the selected
personality.
Also, your kext only has to contain personalities if it is going to
participate in IOKit matching. IOKit families typically don't have
personalities since they are loaded as libraries for other kexts, and
non-IOKit kexts obviously don't have personalities.
I'll let somebody else address StartupItems.
OK, but then why does Leopard tells me a kext that is not related to
IOKit has no personalities?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden