LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sys/class/net/ethx/type What is it? (https://www.linuxquestions.org/questions/linux-newbie-8/sys-class-net-ethx-type-what-is-it-878512/)

tank junior 05-03-2011 04:34 AM

sys/class/net/ethx/type What is it?
 
To get info of all etherhet adapters I am using C as well as info from various files in /sys/class/net/ethx directory.

There is a file name 'type' and has a number in it. Is it physical medium type of ethernet adapter? If yes, then how do I get string representation of that number? If no, then How do I determine physical medium type of ethernet adapter. For example 802.3, 802.5 etc.

Prashant

kbp 05-03-2011 08:23 PM

I don't know the exact answer but I'd probably try reading up on sysfs, maybe this link will help: http://www.kernel.org/pub/linux/kern...005/mochel.pdf

cheers


All times are GMT -5. The time now is 01:45 AM.