Debian Codegraph @

upstream/debian-unstable/man2/nfsservctl.2

raw
1 .\" %%%LICENSE_START(PUBLIC_DOMAIN)
2 .\" This text is in the public domain.
3 .\" %%%LICENSE_END
4 .\"
5 .TH nfsservctl 2 2025-09-21 "Linux man-pages 6.18"
6 .SH NAME
7 nfsservctl \- syscall interface to kernel nfs daemon
8 .SH LIBRARY
9 Standard C library
10 .RI ( libc ,\~ \-lc )
11 .SH SYNOPSIS
12 .nf
13 .B #include <linux/nfsd/syscall.h>
14 .P
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 It has been replaced by a set of files in the
22 .I nfsd
23 filesystem;
24 see
25 .BR nfsd (7).
26 .P
27 .in +4n
28 .EX
29 /*
30 * These are the commands understood by nfsctl().
31 */
32 #define NFSCTL_SVC 0 /* This is a server process. */
33 #define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */
34 #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
35 #define NFSCTL_EXPORT 3 /* Export a filesystem. */
36 #define NFSCTL_UNEXPORT 4 /* Unexport a filesystem. */
37 #define NFSCTL_UGIDUPDATE 5 /* Update a client\[aq]s UID/GID map
38 (only in Linux 2.4.x and earlier). */
39 #define NFSCTL_GETFH 6 /* Get a file handle (used by mountd(8))
40 (only in Linux 2.4.x and earlier). */
41 \&
42 struct nfsctl_arg {
43 int ca_version; /* safeguard */
44 union {
45 struct nfsctl_svc u_svc;
46 struct nfsctl_client u_client;
47 struct nfsctl_export u_export;
48 struct nfsctl_uidmap u_umap;
49 struct nfsctl_fhparm u_getfh;
50 unsigned int u_debug;
51 } u;
52 }
53 \&
54 union nfsctl_res {
55 struct knfs_fh cr_getfh;
56 unsigned int cr_debug;
57 };
58 .EE
59 .in
60 .SH RETURN VALUE
61 On success, zero is returned.
62 On error, \-1 is returned, and
63 .I errno
64 is set to indicate the error.
65 .SH STANDARDS
66 Linux.
67 .SH HISTORY
68 Removed in Linux 3.1.
69 Removed in glibc 2.28.
70 .SH SEE ALSO
71 .BR nfsd (7)