-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Aug 02, 2007 at 07:28:22AM +0100, hari krishna angadi wrote: Please fix your mailer, it completely messes up all indentation. I've reindented it by hand to make it readable again. > in user program we pass command line parameters in my case >for example : i pass 1st arguement as script and other arguements > $ ../Bin/Readdata id20 normal 32496 8192 >tis wil execute the scripts which contains test cases > >now i am porting user code to kernel module.i should pass command line >arguments using insmod. ex insmod ../Bin/Readdata id20 normal 32496 8192 >whether the module will invoke the script? Use module_param and friends. Be sure to read Andre Haupt's reply, you really can't open files from kernel space. >in user cde we use main( int argc,char *argv[ ]) >i should replace main with init in kernel module. That would do the trick, but you have to reload the module to let it run with different parameters. Note: I have no idea what you're trying to achieve and why you would like to run things in kernel instead of userspace, but from the questions you asked so far on this list I get the impression that your design is wrong and you're creating problems that wouldn't exist with a proper design. Could you please explain what you're trying to achieve (i.e. the ultimate goal, not the steps you're taking right now)? Maybe we could help you with a better design. Erik - -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew Lammers in alt.sysadmin.recovery -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGsgiq/PlVHJtIto0RAnqDAJ9TuxsStEglVtUtDo8556DVzo5D/gCdHRzH 1GAsL0VKUCT2IAeh4qKxqCU= =/nfj -----END PGP SIGNATURE----- -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ