1 .\" %%%LICENSE_START(PUBLIC_DOMAIN)
2 .\" This text is in the public domain.
5 .TH NFSSERVCTL 2 2019-03-06 "Linux" "Linux Programmer's Manual"
7 nfsservctl \- syscall interface to kernel nfs daemon
10 .B #include <linux/nfsd/syscall.h>
12 .BI "long nfsservctl(int " cmd ", struct nfsctl_arg *" argp ,
13 .BI " union nfsctl_res *" resp );
17 Since Linux 3.1, this system call no longer exists.
18 It has been replaced by a set of files in the
26 * These are the commands understood by nfsctl().
28 #define NFSCTL_SVC 0 /* This is a server process. */
29 #define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */
30 #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
31 #define NFSCTL_EXPORT 3 /* Export a filesystem. */
32 #define NFSCTL_UNEXPORT 4 /* Unexport a filesystem. */
33 #define NFSCTL_UGIDUPDATE 5 /* Update a client's UID/GID map
34 (only in Linux 2.4.x and earlier). */
35 #define NFSCTL_GETFH 6 /* Get a file handle (used by mountd)
36 (only in Linux 2.4.x and earlier). */
39 int ca_version; /* safeguard */
41 struct nfsctl_svc u_svc;
42 struct nfsctl_client u_client;
43 struct nfsctl_export u_export;
44 struct nfsctl_uidmap u_umap;
45 struct nfsctl_fhparm u_getfh;
51 struct knfs_fh cr_getfh;
52 unsigned int cr_debug;
57 On success, zero is returned.
58 On error, \-1 is returned, and
62 This system call was removed from the Linux kernel in version 3.1.
63 Library support was removed from glibc in version 2.28.
65 This call is Linux-specific.