/sys/module/ info for pci driver

Jeff Haran Jeff.Haran at citrix.com
Mon Apr 6 12:17:49 EDT 2015



From: kernelnewbies-bounces+jharan=bytemobile.com at kernelnewbies.org [mailto:kernelnewbies-bounces+jharan=bytemobile.com at kernelnewbies.org] On Behalf Of rahul b
Sent: Monday, April 06, 2015 4:37 AM
To: kernelnewbies at kernelnewbies.org
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150406/7ff1cf53/attachment.html 


More information about the Kernelnewbies mailing list