The Simple driver module


Simple


Description:

This stupid module consists of one global driver module you can specify a default major number here that can be overrided by loading the driver with /sbin/insmod Stupid.o Stupid_major=<my_major>


Driver inodes:

The driver inode in /dev is usually created by

mknod /dev/Simple c major minor
If another major is needed it can be specified by the Simple_major option to insmod:

insmod Simple.o Simple_major=new_major

Driver inodes:

All driver generated with LDDK have debugging information compiled into the code that can be configured with the dbgMask option to insmod. The bits of dbgMask specifies the debugging verbosity:

For example:

insmod Simple.o dbgMask=0x06 logs all function entrys and exits to the kernel log daemon.

Wed Dec 23 17:40:53 1998