title: Check for user = root within linux kernel?
body: <p>I am writing linux kernel code. I am in VFS and I want to modify it. I want to add a check to see whether or not the user is root and based on that make a decision. How do I do this? Is there a kernel version of getuid() ? Or does any structure like "current->" contain info on which user it is for the current process?</p>