Re: Deleting a file from within the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux