Re: Communication between NKE and IOKit driver
Re: Communication between NKE and IOKit driver
- Subject: Re: Communication between NKE and IOKit driver
- From: "Rakesh Singhal" <email@hidden>
- Date: Tue, 24 Jul 2007 10:16:00 +0530
Thanks a lot Josh.
Regards
Rakesh
On 7/19/07, Josh Graessley <email@hidden> wrote:
I think you need to wrap the declaration of mynke_function in extern "C"
-josh
On Jul 19, 2007, at 6:24 AM, Rakesh Singhal wrote:
> Hi all
>
> I developed an IOkit driver(myiokit.kext) and an NKE(mynke.kext).
> The NKE is included in OSBundleLibraries in info.plist
of IOkit
> driver (For dependency of IOKit driver on NKE). I put mynke.kext
> also in System/Library/Extensions folder. When I load the
> myiokit.kext and it loads mynke.kext also and calls start routine.
> Till now I dont have any issue.
>
> Now I want to communicate between mynke and myiokit. I defined a
> function in mynke and trying to call it from myiokit but I am
> getting following problem:
>
> kextload -t /temp/myiokit.kext/
> kextload: extension /temp/myiokit.kext/ appears to be valid
> kld(): Undefined symbols:
> __ZN5myiokit11mynke_functionEv
> kextload: kld_load_from_memory() failed for module /temp/
> myiokit.kext/Contents/MacOS/myiokit
> kextload: a link/load error occured for kernel extension /temp/
> myiokit.kext/
> load failed for extension /temp/myiokit.kext/
>
> I used nm utility also.
>
> nm -m /temp/myiokit.kext/Contents/MacOS/myiokit | grep mynke_function
> (undefined) external __ZN5myiokit11mynke_functionEv
> nm -m /temp2/mynke.kext/Contents/MacOS/aoenke | grep mynke_function
> 00000a36 (__TEXT,__text) external _mynke_function
>
> Can anyone suggest me how to solve this issue...
>
> Thanks in advance.
>
> Best regards
> Rakesh Singhal
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (
> 40apple.com
>
> This email sent to email@hidden
_______________________________________________
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