1nfsservctl(2)                 System Calls Manual                nfsservctl(2)
2
3
4

NAME

6       nfsservctl - syscall interface to kernel nfs daemon
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

52       On success, zero is returned.  On error, -1 is returned, and  errno  is
53       set to indicate the error.
54

STANDARDS

56       Linux.
57

HISTORY

59       Removed in Linux 3.1.  Removed in glibc 2.28.
60

SEE ALSO

62       nfsd(7)
63
64
65
66Linux man-pages 6.04              2023-03-30                     nfsservctl(2)
Impressum