]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/nfsservctl.2
capabilities.7: Add pivot_root(2) to CAP_SYS_ADMIN list
[thirdparty/man-pages.git] / man2 / nfsservctl.2
CommitLineData
2d6c6dd1 1.\" %%%LICENSE_START(PUBLIC_DOMAIN)
fea681da 2.\" This text is in the public domain.
2d6c6dd1 3.\" %%%LICENSE_END
fea681da 4.\"
9ba01802 5.TH NFSSERVCTL 2 2019-03-06 "Linux" "Linux Programmer's Manual"
fea681da
MK
6.SH NAME
7nfsservctl \- syscall interface to kernel nfs daemon
8.SH SYNOPSIS
62218dc0 9.nf
fea681da 10.B #include <linux/nfsd/syscall.h>
68e4db0a 11.PP
62218dc0
MK
12.BI "long nfsservctl(int " cmd ", struct nfsctl_arg *" argp ,
13.BI " union nfsctl_res *" resp );
c8250206 14.fi
fea681da 15.SH DESCRIPTION
dcee880f
MK
16.IR Note :
17Since Linux 3.1, this system call no longer exists.
71c4b4b3
MK
18It has been replaced by a set of files in the
19.I nfsd
20filesystem; see
21.BR nfsd (7).
efeece04 22.PP
408731d4
MK
23.in +4n
24.EX
fea681da
MK
25/*
26 * These are the commands understood by nfsctl().
27 */
408731d4
MK
28#define NFSCTL_SVC 0 /* This is a server process. */
29#define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */
30#define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
31#define NFSCTL_EXPORT 3 /* Export a filesystem. */
32#define NFSCTL_UNEXPORT 4 /* Unexport a filesystem. */
33#define NFSCTL_UGIDUPDATE 5 /* Update a client's UID/GID map
34 (only in Linux 2.4.x and earlier). */
35#define NFSCTL_GETFH 6 /* Get a file handle (used by mountd)
36 (only in Linux 2.4.x and earlier). */
fea681da
MK
37
38struct nfsctl_arg {
521bf584
MK
39 int ca_version; /* safeguard */
40 union {
41 struct nfsctl_svc u_svc;
42 struct nfsctl_client u_client;
43 struct nfsctl_export u_export;
44 struct nfsctl_uidmap u_umap;
45 struct nfsctl_fhparm u_getfh;
46 unsigned int u_debug;
47 } u;
fea681da
MK
48}
49
50union nfsctl_res {
51 struct knfs_fh cr_getfh;
52 unsigned int cr_debug;
53};
408731d4
MK
54.EE
55.in
47297adb 56.SH RETURN VALUE
c13182ef
MK
57On success, zero is returned.
58On error, \-1 is returned, and
fea681da
MK
59.I errno
60is set appropriately.
53cbdde8
MK
61.SH VERSIONS
62This system call was removed from the Linux kernel in version 3.1.
63Library support was removed from glibc in version 2.28.
47297adb 64.SH CONFORMING TO
8382f16d 65This call is Linux-specific.