kernel call problem

hi all

I want to make a kernel call which takes as input an integer x and prints 2*x

Anyone who knows how could i do that?

Could I ask why you need a kernel call for this? A simple function (or even a macro) will solve this.