OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / original / man2 / nfsservctl.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This text is in the public domain.
4 .\"
5 .\" FIXME The description of nfsservctl() on this page
6 .\" is woefully thin.
7 .\"
8 .TH NFSSERVCTL 2 1997-07-16 "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 .nf
20 /*
21  * These are the commands understood by nfsctl().
22  */
23 #define NFSCTL_SVC          0    /* This is a server process. */
24 #define NFSCTL_ADDCLIENT    1    /* Add an NFS client. */
25 #define NFSCTL_DELCLIENT    2    /* Remove an NFS client. */
26 #define NFSCTL_EXPORT       3    /* export a file system. */
27 #define NFSCTL_UNEXPORT     4    /* unexport a file system. */
28 #define NFSCTL_UGIDUPDATE   5    /* update a client's UID/GID map. */
29 #define NFSCTL_GETFH        6    /* get an fh (used by mountd) */
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 .fi
48 .SH "RETURN VALUE"
49 On success, zero is returned.
50 On error, \-1 is returned, and
51 .I errno
52 is set appropriately.
53 .SH "CONFORMING TO"
54 This call is Linux-specific.