[B]How we can link kernal module statically in kernel?? [/B]
when we artite a kernel module , we can load it into kernel with the use of "insmod" command and after using mknod we can create a node and from application we can use it.
But this is called dynamic linking of kernal module. Once you shutdown the PC this module will not be available in the kernal, you need to load it again in the kernel with insmod command.
I WANT TO KNOW....
How can we load the module statically, I mean after shuting down the PC also that modue should remain in the kernel and we(user/application) must be able to access it wihtout loading it again.
kernel module can be anything, a char or block driver or any other kernal functionality.
But how can we link that into our kernal statically?????
Do we need to change some makefile?? if yes then which?
Do we need to compile the kernel?? then what's the procedure we need to follow before compiling??
Is there anybody???who can help me???