question about communication between KEXTs
question about communication between KEXTs
- Subject: question about communication between KEXTs
- From: rimas avizienis <email@hidden>
- Date: Thu, 21 Aug 2003 14:41:04 -0700 (PDT)
greetings,
here's my situation. i've written a coreaudio driver
to support a piece of custom hardware that transmits
and receives digital audio over ethernet. my current
driver communicates with the network interface by
using dlil_attach_interface_filter to attach a
callback function. this works fine for receiving
packets and i transmit packets using
dlil_inject_if_output.
the problem with this driver is that when the machine
is under a heavy load (running an audio synthesis
program which does its computation in the high
priority coreaudio callback thread) the outgoing
packets don't get transmitted until the high priority
thread relinquishes control (and then they get sent
out in a big burst). this results in latency which
i'm trying to minimize.
i am presently trying to modify my coreaudio driver so
that it speaks directly to the ethernet driver
(bypassing the network stack entirely). my plan was
to modify the AppleGMacEthernet driver in such a way
as to enable my coreaudio driver to pass a callback
function to the ethernet driver which would get called
when a packet of the proper type was received.
I have acquired and read and compiled the
AppleGMacEthernet source but I'm not sure how to go
about doing what I want to do. I first tried
declaring a global variable in the AppleGMacEthernet
KEXT, thinking that i could then reference that
variable from my audio driver KEXT. however when i
try to load the audio driver KEXT it complains about
an undefined symbol for the variable. obviously i'm
missing something about the way the kernel namespace
works.
anyways i would be very grateful for any advice or
direction as to how best establish communication
between these two KEXTs, like how i could get a
reference to the ethernet driver object from my
coreaudio driver or something of the sort.
thanks!
-rimas
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.