]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man2/nfsservctl.2
Wrapped long lines, wrapped at sentence boundaries; stripped trailing
[thirdparty/man-pages.git] / man2 / nfsservctl.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This text is in the public domain.
4 .\"
5 .TH NFSSERVCTL 2 1997-07-16 "Linux 2.1.32" "Linux Programmer's Manual"
6 .SH NAME
7 nfsservctl \- syscall interface to kernel nfs daemon
8 .SH SYNOPSIS
9 .B #include <linux/nfsd/syscall.h>
10 .sp
11 .BI "nfsservctl(int " cmd ", struct nfsctl_arg *" argp \
12 ", union nfsctl_res *" resp );
13 .SH DESCRIPTION
14 .nf
15 /*
16 * These are the commands understood by nfsctl().
17 */
18 #define NFSCTL_SVC 0 /* This is a server process. */
19 #define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */
20 #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
21 #define NFSCTL_EXPORT 3 /* export a file system. */
22 #define NFSCTL_UNEXPORT 4 /* unexport a file system. */
23 #define NFSCTL_UGIDUPDATE 5 /* update a client's UID/GID map. */
24 #define NFSCTL_GETFH 6 /* get an fh (used by mountd) */
25
26 struct nfsctl_arg {
27 int ca_version; /* safeguard */
28 union {
29 struct nfsctl_svc u_svc;
30 struct nfsctl_client u_client;
31 struct nfsctl_export u_export;
32 struct nfsctl_uidmap u_umap;
33 struct nfsctl_fhparm u_getfh;
34 unsigned int u_debug;
35 } u;
36 }
37
38 union nfsctl_res {
39 struct knfs_fh cr_getfh;
40 unsigned int cr_debug;
41 };
42 .fi
43 .SH "RETURN VALUE"
44 On success, zero is returned.
45 On error, \-1 is returned, and
46 .I errno
47 is set appropriately.
48 .SH "CONFORMING TO"
49 This call is Linux specific.