site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mar 2, 2006, at 3:28 PM, Shaun Wexler wrote: Brian Bergstrand <http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEB2baedHYW7bHtqIRAm+JAKD7Du73Spzv6VI0D82h2ZRO8giWVwCg9+a+ 1IXzsxAuYL6Dxi4XojX36kM= =T7Wm -----END PGP SIGNATURE----- _______________________________________________ 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...
From a kext, how can I retrieve the sysctl "kern.osrevision" using valid KPI? It doesn't seem to be recognized by sysctlbyname()...
You can't. Only certain "hw" sub-values are supported via the sysctlbyname() KPI. However, the version_* vars are exported by the LibKern kpi. Those should give you the data you need. $ nm -m /System/Library/Extensions/System.kext/PlugIns/Libkern.kext/ Libkern | grep version_ (undefined) external _version_major (undefined) external _version_minor (undefined) external _version_prerelease_level (undefined) external _version_revision (undefined) external _version_stage (undefined) external _version_variant This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Bergstrand