linux c 网卡型号,linux下查看网卡型号

查看网卡型号

[root@centos /]# lspci | grep Ethernet

02:01.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)

我这里型号是79c970,驱动pcnet32.

查看驱动信息

[root@centos /]# modinfo pcnet32

filename:       /lib/modules/2.6.18-194.el5/kernel/drivers/net/pcnet32.ko

license:        GPL

description:    Driver for PCnet32 and PCnetPCI based ethercards

author:         Thomas Bogendoerfer

srcversion:     F81443556AAE169CBF80F55

alias:          pci:v00001023d00002000sv*sd*bc02sc00i*

alias:          pci:v00001022d00002000sv*sd*bc*sc*i*

alias:          pci:v00001022d00002001sv*sd*bc*sc*i*

depends:        mii

vermagic:       2.6.18-194.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1

parm:           debug:pcnet32 debug level (int)

parm:           max_interrupt_work:pcnet32 maximum events handled per interrupt (int)

parm:           rx_copybreak:pcnet32 copy breakpoint for copy-only-tiny-frames (int)

parm:           tx_start_pt:pcnet32 transmit start point (0-3) (int)

parm:           pcnet32vlb:pcnet32 Vesa local bus (VLB) support (0/1) (int)

parm:           options:pcnet32 initial option setting(s) (0-15) (array of int)

parm:           full_duplex:pcnet32 full duplex setting(s) (1) (array of int)

parm:           homepna:pcnet32 mode for 79C978 cards (1 for HomePNA, 0 for Ethernet, default Ethernet (array of int)

module_sig:     883f3504bb645aa285b5c47ed7a1e8e11213dc09e2fee057e474ae7754a0f36d5fe683478e403f9e0a08018a727bb9fccb38d536dddc1ca9df78384a8a

所有版本的网卡驱动基本上都在/lib/modules/2.6.18-194.el5/kernel/drivers/net/ .

你可能感兴趣的:(linux,c,网卡型号)