how to display pid and other parameters of current process through kernel module ?

how to display pid and other parameters of current process in linux platform ?
i know it can be done through a linux commmand ps -F
but i want it done through kernel program
thanks in advance

The concept of "current process" doesn't exist inside the kernel. What you're asking doesn't make a ton of sense.