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:gra...@visi.com] Sent: Tuesday, December 16, 2008 9:54 AM To: ecos-disc...@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