1NFSSERVCTL(2)              Linux Programmer's Manual             NFSSERVCTL(2)
2
3
4

NAME

6       nfsservctl - syscall interface to kernel nfs daemon
7

SYNOPSIS

9       #include <linux/nfsd/syscall.h>
10
11       long nfsservctl(int cmd, struct nfsctl_arg *argp,
12                       union nfsctl_res *resp);
13

DESCRIPTION

15       Note:  Since Linux 3.1, this system call no longer exists.  It has been
16       replaced by a set of files in the nfsd filesystem; see nfsd(7).
17
18           /*
19            * These are the commands understood by nfsctl().
20            */
21           #define NFSCTL_SVC        0  /* This is a server process. */
22           #define NFSCTL_ADDCLIENT  1  /* Add an NFS client. */
23           #define NFSCTL_DELCLIENT  2  /* Remove an NFS client. */
24           #define NFSCTL_EXPORT     3  /* Export a filesystem. */
25           #define NFSCTL_UNEXPORT   4  /* Unexport a filesystem. */
26           #define NFSCTL_UGIDUPDATE 5  /* Update a client's UID/GID map
27                                           (only in Linux 2.4.x and earlier). */
28           #define NFSCTL_GETFH      6  /* Get a file handle (used by mountd)
29                                           (only in Linux 2.4.x and earlier). */
30
31           struct nfsctl_arg {
32               int                       ca_version;     /* safeguard */
33               union {
34                   struct nfsctl_svc     u_svc;
35                   struct nfsctl_client  u_client;
36                   struct nfsctl_export  u_export;
37                   struct nfsctl_uidmap  u_umap;
38                   struct nfsctl_fhparm  u_getfh;
39                   unsigned int          u_debug;
40               } u;
41           }
42
43           union nfsctl_res {
44                   struct knfs_fh          cr_getfh;
45                   unsigned int            cr_debug;
46           };
47

RETURN VALUE

49       On success, zero is returned.  On error, -1 is returned, and  errno  is
50       set to indicate the error.
51

VERSIONS

53       This system call was removed from the Linux kernel in version 3.1.  Li‐
54       brary support was removed from glibc in version 2.28.
55

CONFORMING TO

57       This call is Linux-specific.
58

SEE ALSO

60       nfsd(7)
61

COLOPHON

63       This page is part of release 5.13 of the Linux  man-pages  project.   A
64       description  of  the project, information about reporting bugs, and the
65       latest    version    of    this    page,    can     be     found     at
66       https://www.kernel.org/doc/man-pages/.
67
68
69
70Linux                             2021-03-22                     NFSSERVCTL(2)
Impressum