Communication between NKE and IOKit driver
Communication between NKE and IOKit driver
- Subject: Communication between NKE and IOKit driver
- From: "Rakesh Singhal" <email@hidden>
- Date: Thu, 19 Jul 2007 18:54:25 +0530
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden