Re: Personality?
Re: Personality?
- Subject: Re: Personality?
- From: Dave Zarzycki <email@hidden>
- Date: Thu, 01 Nov 2007 16:00:15 -0700
On Nov 1, 2007, at 3: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.
StartupItems are deprecated. The replacement technology is called
launchd. The closest feature that launchd has that might be considered
analogous to IOKit personalities is the conditional keep-alive logic.
I'd recommend searching for "KeepAlive" in the launchd.plist man page
for more information.
davez _______________________________________________
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