Re: Deleting a file from within the kernel

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

 



Tomas Telensky wrote on 04/21/2005 02:32:35 PM:

> Doesn't the nfs server run in userspace?
> I think so.

SuSE 9.1 which I am running has the option of running nfsd 
in userspace or in the kernel.

Here is snipit of my process list.
root      2847     1  0 Apr18 ?        00:00:01 [nfsd]
root      2848     1  0 Apr18 ?        00:00:02 [nfsd]
root      2849     1  0 Apr18 ?        00:00:01 [nfsd]
root      2850     1  0 Apr18 ?        00:00:00 [nfsd]
root      2853     1  0 Apr18 ?        00:00:00 [lockd]

The code resides in fs/nfsd and it does have a function
to unlink a file (nfsd_unlink).  The implementation 
looks different than sys_unlink, but eventually it 
calls vfs_unlink as well.

It may be a good resource to reference if I choose to 
actually delete a file within the kernel. 

Thanks!
-Tony

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