2009/7/14 Rishi Agrawal <rishi.b.agrawal@xxxxxxxxx>: > Hello All, > > I have written a character device driver suppose abc.c > > 1) I want to load the device driver abc.ko on every boot of the system. > > How can I achieve this ? > > > 2) I want the device /dev/abc_dev to be present whenever the system reboots. > The major and minor number should same as that of abc.ko when inserted. > > How can this be done ? Hi! First, if your kernel module is controlling some hardware, then you can copy your module to "/lib/modules/`uname -r`/drivers" directory and then issue the "/sbin/depmode -a" command. Your module will be registered in your system. Then when say PCI subsystem will find new device which is not yet controlled by any driver it will load your module. The other way is to use the init script which is being executed on system boot. -- Denis > -- > Regards, > Rishi B. Agrawal > http://www.linkedin.com/in/rishibagrawal > http://code.google.com/p/fscops/ > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ