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.