Re: IOKitPersonalities
Re: IOKitPersonalities
- Subject: Re: IOKitPersonalities
- From: Dean Reece <email@hidden>
- Date: Mon, 14 Apr 2003 09:59:13 -0700
On Monday, April 14, 2003, at 09:32 AM, Dave Koziol wrote:
In the start or probe routine to a KEXT, I would like to get access to
the IOKitPersonalities array of my KEXT.
I know I can't ready the file, but hopefully whoever is calling me has
this information, and I just want to take a look at it.
Is there a way I can get to this?
Dave,
The properties in your driver's I/O Kit personality that matched your
driver in will be included in your driver's property list. There isn't
any supported API for examining the properties of other I/O Kit
personalities or from the top-level of the driver's plist. See
IORegistryEntry::getPropertyTable() and IORegistryEntry::copyProperty().
[I don't know why you need access to this info, so I don't know if the
following warning applies to your situation or not:]
Please do NOT use the Info.plist as a way to communicate dynamic
configuration info down to your driver. The Info.plist is cached and
changes won't necessarily even be seen for several reboots. In future
releases, we may see that the checksum of your driver's file have
changed and consider your kext corrupted. In short, consider the
Info.plist to be a read-only file: it's contents should be established
when the driver is installed and should not change until/unless the
driver is removed or replaced.
Hope this helps,
- Dean
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.