Re: Kext fails to load when falloc is used
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Apr 26, 2006, at 7:44 AM, Sudarshan S wrote: Brian Bergstrand <http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFET5utedHYW7bHtqIRApuCAKCRWd1FWOSoHhf+c+2tp+DC1da8qwCeK9Ev qKIkNrQOkPZvdboH7f1IwWo= =Atfj -----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... I am trying to use falloc( ) call to mimic file open operation in the kext on 10.4.4 kernel. The loader fails to load kext as it can not resolve the symbol even though the symbol exists in mach_kernel. Is it something to do with specifying proper dependancies in 'OSBundleLibraries' section of info.plist ? -Leo falloc is not a supported KPI, therefore you'd have to link against the kernel proper (using OSBundleLibraries), but in doing so you limit your KEXT to that specific version of the kernel - neither earlier or later versions will work. If you plan on shipping the KEXT to third-party users this is a bad idea. Also, reading/writing to file from a KEXT is highly discouraged. It can lead to all kinds of problems. Better would be to create a userland daemon that acts as a proxy for the kext. This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Bergstrand