Debian Codegraph @

upstream/debian-trixie/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 2024-05-02 "Linux man-pages 6.9.1"
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; see
24 .BR nfsd (7).
25 .P
26 .in +4n
27 .EX
28 /*
29 * These are the commands understood by nfsctl().
30 */
31 #define NFSCTL_SVC 0 /* This is a server process. */
32 #define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */
33 #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */
34 #define NFSCTL_EXPORT 3 /* Export a filesystem. */
35 #define NFSCTL_UNEXPORT 4 /* Unexport a filesystem. */
36 #define NFSCTL_UGIDUPDATE 5 /* Update a client\[aq]s UID/GID map
37 (only in Linux 2.4.x and earlier). */
38 #define NFSCTL_GETFH 6 /* Get a file handle (used by mountd(8))
39 (only in Linux 2.4.x and earlier). */
40 \&
41 struct nfsctl_arg {
42 int ca_version; /* safeguard */
43 union {
44 struct nfsctl_svc u_svc;
45 struct nfsctl_client u_client;
46 struct nfsctl_export u_export;
47 struct nfsctl_uidmap u_umap;
48 struct nfsctl_fhparm u_getfh;
49 unsigned int u_debug;
50 } u;
51 }
52 \&
53 union nfsctl_res {
54 struct knfs_fh cr_getfh;
55 unsigned int cr_debug;
56 };
57 .EE
58 .in
59 .SH RETURN VALUE
60 On success, zero is returned.
61 On error, \-1 is returned, and
62 .I errno
63 is set to indicate the error.
64 .SH STANDARDS
65 Linux.
66 .SH HISTORY
67 Removed in Linux 3.1.
68 Removed in glibc 2.28.
69 .SH SEE ALSO
70 .BR nfsd (7)