Getting Device Driver Information

Loaded kernel modules

$ lsmod

Show devices connected to the machine.

$ lspci

Show detailed information on a device, including the driver module it’s using (can be cross referenced to lsmod output)

$ lspci -v

Check kernel ring buffer for attached devices

$ dmesg

Use the /sys virtual filesystem to locate a device’s driver (equivalent to lspci -v)

$ lspci | grep Network
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06)
43:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)

$ find /sys/bus/pci/drivers -iname "*43:00.0*"
/sys/bus/pci/drivers/iwlwifi/0000:43:00.0

Get information on a module.

$ modinfo iwlwifi
filename:       /lib/modules/3.2.0-39-generic/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko
alias:          iwlagn
license:        GPL
author:         Copyright(c) 2003-2011 Intel Corporation <ilw@linux.intel.com>
version:        in-tree:
description:    Intel(R) Wireless WiFi Link AGN driver for Linux
...
This entry was posted in drivers and tagged , , . Bookmark the permalink.

Comments are closed.