Get the MAC address in Linux Device Driver
Hi,
I want to get the ethernet address (MAC address) in kernel module. How to do that? Thanks, Saurin |
If you're asking how to write a kernel module that will report a MAC address, look at the source code for some prigran that does that. For example, the program invoked by the ifconfig script reports the MAC address.
I suspect that the MAC address can by found by reading the correct file in the /proc pseudo-files. Almost all system information is available there. |
All times are GMT -5. The time now is 12:56 PM. |