How to get the current process in kernel context?