Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Personality?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Personality?




On lundi, novembre 5, 2007, at 07:59 PM, Nik Gervae wrote:

On 02 Nov, 2007, at 11:07, Stéphane Sudre wrote:

Ok, long version of the story.
I'm looking at an application that uses 3 kernel extensions:
- 2 KPI Kext (one has a dependency on the IOKit kext below)
- 1 IOKit/KPI kext.
The KPI kexts are loaded through a launchd script with the kexload -v argument. The Info.plist files of both kexts are globally the same (names differ).


On Leopard, when I look at system.log, one of KPI is said to not have any personality while there's no complaint for the other.

I'm curious why there's a complaint in one case and none in the other.

From the information I gather, I think it would be better if I remove the IOKit kext and merge it into the kext that depends on it.

First thing I'll note is that if kextload is run with -v, it's going to print/log basic warnings and items of note. Explicitly loading an IOKit kext that has no personalities is essentially a one-minute no-op, since that kext will normally not match any devices and be automatically unloaded after that time period. Hence, kextload points out the lack of personalities.


If one of the "KPI kexts" (I'm not sure what you mean by that term)

A Kernel Extension relying only on the KPIs and not on any unsupported API. One that should not face any trouble in theory when the OS is updated and whose OSBundleLibraries value looks like this:


<dict>
	<key>com.apple.kpi.bsd</key>
	<string>8.0.0</string>
	<key>com.apple.kpi.libkern</key>
	<string>8.0.0</string>
	<key>com.apple.kpi.mach</key>
	<string>8.0.0</string>
</dict>




_______________________________________________ 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
References: 
 >Re: Personality? (From: Nik Gervae <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.