Re: linking Kext with a dynamic library
Re: linking Kext with a dynamic library
- Subject: Re: linking Kext with a dynamic library
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 07 May 2012 10:28:31 +0100
On 7 May 2012, at 08:03, Arun wrote:
> How can i link a dylib to a Kernel extension build? Is it possible?
The kernel has a very different dynamic linking mechanism from user space so you can't use standard user space dynamic libraries. If you have source code for the library you can rebuild it into a KEXT and get roughly equivalent functionality. See the (much in need of an update) IOKitWithLibrary sample code.
<http://developer.apple.com/library/mac/#samplecode/IOKitWithLibrary/>
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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