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.
16
17       /*
18        * These are the commands understood by nfsctl().
19        */
20       #define NFSCTL_SVC          0    /* This is a server process. */
21       #define NFSCTL_ADDCLIENT    1    /* Add an NFS client. */
22       #define NFSCTL_DELCLIENT    2    /* Remove an NFS client. */
23       #define NFSCTL_EXPORT       3    /* export a file system. */
24       #define NFSCTL_UNEXPORT     4    /* unexport a file system. */
25       #define NFSCTL_UGIDUPDATE   5    /* update a client's UID/GID map. */
26       #define NFSCTL_GETFH        6    /* get an fh (used by mountd) */
27
28       struct nfsctl_arg {
29           int                       ca_version;     /* safeguard */
30           union {
31               struct nfsctl_svc     u_svc;
32               struct nfsctl_client  u_client;
33               struct nfsctl_export  u_export;
34               struct nfsctl_uidmap  u_umap;
35               struct nfsctl_fhparm  u_getfh;
36               unsigned int          u_debug;
37           } u;
38       }
39
40       union nfsctl_res {
41               struct knfs_fh          cr_getfh;
42               unsigned int            cr_debug;
43       };
44

RETURN VALUE

46       On  success,  zero is returned.  On error, -1 is returned, and errno is
47       set appropriately.
48

CONFORMING TO

50       This call is Linux-specific.
51

COLOPHON

53       This page is part of release 3.53 of the Linux  man-pages  project.   A
54       description  of  the project, and information about reporting bugs, can
55       be found at http://www.kernel.org/doc/man-pages/.
56
57
58
59Linux                             2012-03-05                     NFSSERVCTL(2)
Impressum