RE: /sys/module/ info for pci driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

 

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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux