]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/nfsservctl.2
random.4: spfix
[thirdparty/man-pages.git] / man2 / nfsservctl.2
CommitLineData
fea681da
MK
1.\" Hey Emacs! This file is -*- nroff -*- source.
2.\"
3.\" This text is in the public domain.
4.\"
4f4d2fac 5.\" FIXME The description of nfsservctl() on this page
568f8f43
MK
6.\" is woefully thin.
7.\"
dcee880f 8.TH NFSSERVCTL 2 2012-03-05 "Linux" "Linux Programmer's Manual"
fea681da
MK
9.SH NAME
10nfsservctl \- syscall interface to kernel nfs daemon
11.SH SYNOPSIS
62218dc0 12.nf
fea681da
MK
13.B #include <linux/nfsd/syscall.h>
14.sp
62218dc0
MK
15.BI "long nfsservctl(int " cmd ", struct nfsctl_arg *" argp ,
16.BI " union nfsctl_res *" resp );
c8250206 17.fi
fea681da 18.SH DESCRIPTION
dcee880f
MK
19.IR Note :
20Since Linux 3.1, this system call no longer exists.
21
fea681da
MK
22.nf
23/*
24 * These are the commands understood by nfsctl().
25 */
521bf584
MK
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 file system. */
30#define NFSCTL_UNEXPORT 4 /* unexport a file system. */
31#define NFSCTL_UGIDUPDATE 5 /* update a client's UID/GID map. */
32#define NFSCTL_GETFH 6 /* get an fh (used by mountd) */
fea681da
MK
33
34struct nfsctl_arg {
521bf584
MK
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;
fea681da
MK
44}
45
46union nfsctl_res {
47 struct knfs_fh cr_getfh;
48 unsigned int cr_debug;
49};
50.fi
51.SH "RETURN VALUE"
c13182ef
MK
52On success, zero is returned.
53On error, \-1 is returned, and
fea681da
MK
54.I errno
55is set appropriately.
56.SH "CONFORMING TO"
8382f16d 57This call is Linux-specific.