The Config driver module


Config


Description:

The 'configure' class makes the generation of configuration scripts easier. The mechanism is similar to the configure scripts of the linux kernel. Once the scripts are generated you can use 'make config' or 'make xconfig' in the new driver source tree. The generated toplevel Makefile will use Tcl/Tk (make xconfig) by default unless the --notk option is given to ddl2c. The syntax is: configure /{ <code> }/ while <code> is in the syntax of the linux kernel 'config.in' to define interactive option macros.


Driver inodes:

The driver inode in /dev is usually created by

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

insmod Config.o Config_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 Config.o dbgMask=0x06 logs all function entrys and exits to the kernel log daemon.

Mon Dec 28 12:42:47 1998