The Procinfo driver module


Procinfo


Description:

This module shows how the 'procinfo' method can be used to export kernel data to /proc/<driver.name>


Driver inodes:

The driver inode in /dev is usually created by

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

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

Wed Dec 23 12:43:15 1998