1 .\" %%%LICENSE_START(PUBLIC_DOMAIN)
2 .\" This text is in the public domain.
5 .\" FIXME The description of nfsservctl() on this page
8 .TH NFSSERVCTL 2 2012-03-05 "Linux" "Linux Programmer's Manual"
10 nfsservctl \- syscall interface to kernel nfs daemon
13 .B #include <linux/nfsd/syscall.h>
15 .BI "long nfsservctl(int " cmd ", struct nfsctl_arg *" argp ,
16 .BI " union nfsctl_res *" resp );
20 Since Linux 3.1, this system call no longer exists.
24 * These are the commands understood by nfsctl().
26 #define NFSCTL_SVC 0 /* This is a server process. */
27 #define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */
28 #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
29 #define NFSCTL_EXPORT 3 /* export a file system. */
30 #define NFSCTL_UNEXPORT 4 /* unexport a file system. */
31 #define NFSCTL_UGIDUPDATE 5 /* update a client's UID/GID map. */
32 #define NFSCTL_GETFH 6 /* get an fh (used by mountd) */
35 int ca_version; /* safeguard */
37 struct nfsctl_svc u_svc;
38 struct nfsctl_client u_client;
39 struct nfsctl_export u_export;
40 struct nfsctl_uidmap u_umap;
41 struct nfsctl_fhparm u_getfh;
47 struct knfs_fh cr_getfh;
48 unsigned int cr_debug;
52 On success, zero is returned.
53 On error, \-1 is returned, and
57 This call is Linux-specific.