OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / nfsservctl.2
1 .\" %%%LICENSE_START(PUBLIC_DOMAIN)
2 .\" This text is in the public domain.
3 .\" %%%LICENSE_END
4 .\"
5 .\" FIXME . The description of nfsservctl() on this page
6 .\" is woefully thin.
7 .\"
8 .TH NFSSERVCTL 2 2013-09-17 "Linux" "Linux Programmer's Manual"
9 .SH NAME
10 nfsservctl \- syscall interface to kernel nfs daemon
11 .SH SYNOPSIS
12 .nf
13 .B #include <linux/nfsd/syscall.h>
14 .sp
15 .BI "long nfsservctl(int " cmd ", struct nfsctl_arg *" argp ,
16 .BI "                union nfsctl_res *" resp );
17 .fi
18 .SH DESCRIPTION
19 .IR Note :
20 Since Linux 3.1, this system call no longer exists.
21
22 .nf
23 /*
24  * These are the commands understood by nfsctl().
25  */
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 filesystem. */
30 #define NFSCTL_UNEXPORT     4    /* Unexport a filesystem. */
31 #define NFSCTL_UGIDUPDATE   5    /* Update a client's UID/GID map
32                                     (only in Linux 2.4.x and earlier). */
33 #define NFSCTL_GETFH        6    /* Get a file handle (used by mountd)
34                                     (only in Linux 2.4.x and earlier). */
35
36 struct nfsctl_arg {
37     int                       ca_version;     /* safeguard */
38     union {
39         struct nfsctl_svc     u_svc;
40         struct nfsctl_client  u_client;
41         struct nfsctl_export  u_export;
42         struct nfsctl_uidmap  u_umap;
43         struct nfsctl_fhparm  u_getfh;
44         unsigned int          u_debug;
45     } u;
46 }
47
48 union nfsctl_res {
49         struct knfs_fh          cr_getfh;
50         unsigned int            cr_debug;
51 };
52 .fi
53 .SH RETURN VALUE
54 On success, zero is returned.
55 On error, \-1 is returned, and
56 .I errno
57 is set appropriately.
58 .SH CONFORMING TO
59 This call is Linux-specific.
60 .SH COLOPHON
61 This page is part of release 3.79 of the Linux
62 .I man-pages
63 project.
64 A description of the project,
65 information about reporting bugs,
66 and the latest version of this page,
67 can be found at
68 \%http://www.kernel.org/doc/man\-pages/.