]>
Commit | Line | Data |
---|---|---|
fea681da MK |
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 ", union nfsctl_res *" resp ); | |
12 | .SH DESCRIPTION | |
13 | .nf | |
14 | /* | |
15 | * These are the commands understood by nfsctl(). | |
16 | */ | |
17 | #define NFSCTL_SVC 0 /* This is a server process. */ | |
18 | #define NFSCTL_ADDCLIENT 1 /* Add an NFS client. */ | |
19 | #define NFSCTL_DELCLIENT 2 /* Remove an NFS client. */ | |
20 | #define NFSCTL_EXPORT 3 /* export a file system. */ | |
21 | #define NFSCTL_UNEXPORT 4 /* unexport a file system. */ | |
fdc196f5 | 22 | #define NFSCTL_UGIDUPDATE 5 /* update a client's UID/GID map. */ |
fea681da MK |
23 | #define NFSCTL_GETFH 6 /* get an fh (used by mountd) */ |
24 | ||
25 | struct nfsctl_arg { | |
26 | int ca_version; /* safeguard */ | |
27 | union { | |
28 | struct nfsctl_svc u_svc; | |
29 | struct nfsctl_client u_client; | |
30 | struct nfsctl_export u_export; | |
31 | struct nfsctl_uidmap u_umap; | |
32 | struct nfsctl_fhparm u_getfh; | |
33 | unsigned int u_debug; | |
34 | } u; | |
35 | } | |
36 | ||
37 | union nfsctl_res { | |
38 | struct knfs_fh cr_getfh; | |
39 | unsigned int cr_debug; | |
40 | }; | |
41 | .fi | |
42 | .SH "RETURN VALUE" | |
43 | On success, zero is returned. On error, \-1 is returned, and | |
44 | .I errno | |
45 | is set appropriately. | |
46 | .SH "CONFORMING TO" | |
75b48e9d | 47 | This call is Linux specific. |