[ECOS] How to get Ethernet link status?

Jay Foster jay@systech.com
Tue Dec 16 21:11:00 GMT 2008


I've done this by implementing my own function, which calls the
_eth_phy_state() function from the Generic PHY Package.  Depending on which
drivers/packages are configured, my function might call the ethernet driver
specific function (PhyStatus() for example), or the _eth_phy_state()
function when the Generic PHY Package is configured.

You're right that other than the Generic PHY Package, there is no generic
way to do this, thus my own function that hides this from my application(s).

Jay

-----Original Message-----
From: Grant Edwards [mailto:grante@visi.com]
Sent: Tuesday, December 16, 2008 9:54 AM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] How to get Ethernet link status?


What is the official method used to get the link status of an
interface (up/down, 10/100/1000, full/half duplex)?

I don't see any hooks in the Ethernet driver API.  Are drivers
supposed to export that info as global variables somehow?  Are
they supposed to provide a global function to call?

-- 
Grant Edwards                   grante             Yow! My BIOLOGICAL ALARM
                                  at               CLOCK just went off ...
It
                               visi.com            has noiseless DOZE
FUNCTION
                                                   and full kitchen!!


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list