Re: kext version handling
Re: kext version handling
- Subject: Re: kext version handling
- From: Michael Smith <email@hidden>
- Date: Wed, 23 Jun 2010 08:33:15 -0700
On Jun 23, 2010, at 7:02 AM, Luciano wrote: I have a question concerning kext version handling: If I want to ensure compatibility of a kext (i.e a driver) and a userspace library that accesses the functionality of the kext, what is the best way to do it? I know that there is the bundle version of a kext, but i dont see how a library could easily extract this information to make sure that the installed kext version is one with which it is compatible. I thought about using sysctl to expose the kext version info, but is this the right way to do it?
You would normally expose a UserClient from your kext. Pick a constant method index (0 is a fine choice) and have it return a version number.
Alternatively, set a property on the device containing the version number; you can do this passively by having the version number in the driver's personality dictionary, where it can be filled in by Xcode at build time.
= Mike
-- The lyf so short, the craft so long to lerne -- Chaucer
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden