Re: kext version handling
Re: kext version handling
- Subject: Re: kext version handling
- From: Luciano <email@hidden>
- Date: Thu, 24 Jun 2010 13:58:12 +0200
On Wednesday 23 June 2010 17:33, Michael Smith wrote:
>
> 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
>
Hi Mike,
thank you for you answer! But in my case the kext is not implemented by means
of the IOKit. Its a pure C kext (I use it to intercept file accesses via
Kauth) that communicates with userland by means of control sockets. So I
guess I cant use the IOKit facilities, right? What possibilities exist for a
kext written in C to expose its version number? Should I use the "Bundle
version" number? And if so, how can I retrieve it from my userspace library?
Thx for your help in advance!
Best regards,
Luciano
_______________________________________________
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