site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: KMail/1.9.5 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com