From: [email protected]
[mailto:[email protected]] On
Behalf Of rahul b
Sent: Monday, April 06, 2015 4:37 AM
To: [email protected]
Subject: /sys/module/ info for pci driver
Hi
After loading pci driver for proprietary ethernet card, i dont see the few
module detail in in /sys/module/<module-name>/drivers/pci:<module-name>/net .
Can someone tell what APIs should be used to get the ethernet interface name ,
mac address details .
Thanks
You probably want to grep/google for rtnetlink. I am pretty sure the iproute2
ip command uses it to generate output like this:
$ ip link show dev lo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
Jeff Haran
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies