Re: Deleting a file from within the kernel

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

 



Hi,

> How do you delete a file while in the kernel?
>
> I can find numerous examples of how to open/create/close a file within
> the kernel like http://uqconnect.net/~zzoklan/lkd/using_files.html , but
> I have been unable to find a resource on how to delete a file. I would
> really
> like a filp_unlink to go along with the filp_open, filp_close etc.
>
> I know doing any of these things is discouraged, but please don't respond
> with don't do it :-)
>
> Thanks!
> Tony

Did you try "sys_unlink(const char * pathname)"?

niTin


--
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