CHAR DRIVER LOADING PROBLEM

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

 



Hello,

 

I am trying to install a char PCI device driver using the dynamic allocation of major numbers discussed in CH3 of the Linux Device Drivers version.

I am using a modified version of a script called "scullc_load" to load my driver.

I don't know much about "awk", but the line that is used to generate that "major" number from the "/proc/devices" file never produces a value.

 

            major=`cat /proc/devices | awk \\$2==\$module\" {print \\$1}"`

 

Where in my case,     module="pci_char_driver"

 

Do I need to put something in the /proc/devices file??

 

Regards,  Ed


[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