site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Nov 1, 2007, at 3:41 PM, Dean Reece wrote: davez _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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/IOKitFunda...
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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave Zarzycki