• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Personality?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Personality?


  • Subject: Re: Personality?
  • From: Nik Gervae <email@hidden>
  • Date: Wed, 7 Nov 2007 12:01:40 -0800

On 05 Nov, 2007, at 13:18, Stéphane Sudre wrote:
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:
Ah, you had said one of them had a dependency on your IOKit kext. That is why I was confused.

Did my explanation about the IOKit kext not needing an explicit load make sense? If it is only serving as a library to the other kext, it will be loaded automatically, and no warning about personalities will occur.

--Nik

_______________________________________________
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: Stéphane Sudre <email@hidden>)

  • Prev by Date: RE: darwinbuild doesn't like xcode 3
  • Next by Date: kqueue, multithreading and architecture
  • Previous by thread: Re: Personality?
  • Next by thread: X11 error on Mac OS X 10.5
  • Index(es):
    • Date
    • Thread