Ads 468x60px

##EasyReadMore##

22 2月, 2017

Linux device Driver command


模擬 patch 檔有沒有錯誤:

patch -p1 --dry-run < kmalloc.patch

list pci device:

lspci

use driver module name get PCI ID:

cd /sys/bus/pci/drivers
ls e1000

use PCI ID get drvier module:

cd /sys/bus/pci/devices
cd 0000:02:01.0
ls -l driver
lrwxrwxrwx 1 root root 0 Nov 24 17:42 driver -> ../../../../bus/pci/drivers/e1000

list irq:

cat /proc/interrupts
    19:     236694          0          0          0   IO-APIC-fasteoi   eth0

list device node:

ll /dev //c:charcter b:block p:piple divice

0 意見:

張貼留言

 
Blogger Templates