RE: printk??

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

 



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-----
From: Medeiros Edward M NPRI [mailto:MedeirosEM@xxxxxxxxxxxxxxxxx]
Sent:
Wednesday, January 18, 2006 2:33 PM
To: 'kernelnewbies@xxxxxxxxxxxx'
Subject: printk??

 

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.

 

 


[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