On 4/21/05, Tony.Asleson@xxxxxxxxxxxxxxxx <Tony.Asleson@xxxxxxxxxxxxxxxx> wrote: > How do you delete a file while in the kernel? You mean unlink? The standart way would be to traverse the dentry tree to the directory with the file to be deleted and call the unlink method of that directory inode. Look at Documenatation/filesystems/directory-locking for details on locking HTH Martin Jambor -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/