Hi,
I think you need to consider following points:
1. To call function of kext A from kext B, kext B
should be linked with kext A.
2. kext A should be loaded first before you make call
to function of kext A.
You can achieve it by doing this:
You can give dependancies like this in your Info.plist
file of KEXT B.
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOPCIFamily</key>
<string>1.0.0</string>
</dict>
Here com.apple.iokit.IOPCIFamily is your KEXT A.
This will load the KEXT A first before loading kextB,
and also link kextB with A also.
You can see that from kextstat.
If your function is C function, you can extern it in
another kext B like any other variable.
Or your kext A should be family driver(KEXT) which has
abstract class, and in your kextB derive that class
can call the function.
Regards,
Parav Pandit
--- Anshul Makkar <email@hidden> wrote:
> Hello,
> I want to call functions of a kext from other kext .
> ie I want
> communication between kext. How to achieve it.
> Please let me know if any
> links or any other information is available to
> achieve the above task.
> Basically I will be registrying my kext as the
> graphics driver(kext ) so
> that all the calls that I will get to draw can be
> passed to original
> graphics kext.
> Thanks
>
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Darwin-drivers mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden
>
> This email sent to email@hidden
>
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden
This email sent to email@hidden