This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Event driven ethernet status change
- From: Matt Jerdonek <maj1224 at yahoo dot com>
- To: Discussion eCos <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 3 Mar 2004 09:27:12 -0800 (PST)
- Subject: [ECOS] Event driven ethernet status change
Hi Folks,
I need a way for an ethernet driver (but specifically
the powerpc/fec driver) to inform an application of a
loss and restoral of ethernet carrier.
If possible, I want avoid having the application poll
the driver for its status. Instead, I'd like driver
to inform the application of status changes.
It looks like I can call if_down(...) or if_up(...)
from the ethernet driver, then, in the application,
listen on the routing socket for status changes. Is
this a reasonable approach? Is there a better way?
Thanks,
-- Matt
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster
http://search.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss