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 |