title: linux kernel proper way to unlink a file
body: <p>Linux 3.2.2 kernel</p>
  
  <p>I examined the source code in fs/namei.c and found do_unlinkat which performs the entire operation but takes a user space pointer. I was wondering if there is a function that does this except in the kernel space (i do have the struct path to the file, inode, and dentry)
  I could just copy the code from the function into my own. But I was just wondering how it works as well?</p>