Re: Kext fails to load when falloc is used
Re: Kext fails to load when falloc is used
- Subject: Re: Kext fails to load when falloc is used
- From: Brian Bergstrand <email@hidden>
- Date: Wed, 26 Apr 2006 11:11:19 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Apr 26, 2006, at 7:44 AM, Sudarshan S wrote:
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.
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden