Hello,
I just wanted to add that when I install my driver using the 3 steps called out below and I look at the file "/proc/devices" I don't see my device listed. I am doing something wrong here. Does anyone have any suggestions? Thank you
-----Original Message-----
Hello,
I just wrote a simple PCI device driver based on a char device driver that someone submitted to this website. I have done the following to install the driver:
1. insmod pci_char_driver.ko 2. mknod /dev/pci_char_driver c 12 0 3. chmod 664 /dev/pci_char_driver
When I run "lsmod" I see my driver and when I run"ls -l /dev/pci_char_driver" I see my device with the correct major and minor numbers. The problem is that when I run "dmesg" I don't see any of the print statements I put in the "probe()" routine! Am I looking in the right place? Where does the output for printk go?
Thank you.
|