17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 527242a7cSthurlow * Common Development and Distribution License (the "License"). 627242a7cSthurlow * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* 22b89a8333Snatalie li - Sun Microsystems - Irvine United States * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate * Use is subject to license terms. 24967a528aSDan McDonald * Copyright 2023 MNX Cloud, Inc. 257c478bd9Sstevel@tonic-gate */ 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 28b4203d75SMarcel Telka /* All Rights Reserved */ 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #ifndef _NFS_NFSSYS_H 317c478bd9Sstevel@tonic-gate #define _NFS_NFSSYS_H 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate #ifdef __cplusplus 347c478bd9Sstevel@tonic-gate extern "C" { 357c478bd9Sstevel@tonic-gate #endif 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate /* 387c478bd9Sstevel@tonic-gate * Private definitions for the nfssys system call. 397c478bd9Sstevel@tonic-gate * Note: <nfs/export.h> and <nfs/nfs.h> must be included before 407c478bd9Sstevel@tonic-gate * this file. 417c478bd9Sstevel@tonic-gate */ 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gate /* 447c478bd9Sstevel@tonic-gate * Flavors of nfssys call. Note that OLD_mumble commands are no longer 457c478bd9Sstevel@tonic-gate * implemented, but the entries are kept as placeholders for binary 467c478bd9Sstevel@tonic-gate * compatibility. 477c478bd9Sstevel@tonic-gate */ 4827242a7cSthurlow enum nfssys_op { OLD_NFS_SVC, OLD_ASYNC_DAEMON, EXPORTFS, OLD_NFS_GETFH, 497c478bd9Sstevel@tonic-gate OLD_NFS_CNVT, NFS_REVAUTH, OLD_NFS_FH_TO_FID, OLD_LM_SVC, KILL_LOCKMGR, 507c478bd9Sstevel@tonic-gate LOG_FLUSH, SVCPOOL_CREATE, NFS_SVC, LM_SVC, SVCPOOL_WAIT, SVCPOOL_RUN, 517c478bd9Sstevel@tonic-gate NFS4_SVC, RDMA_SVC_INIT, NFS4_CLR_STATE, NFS_IDMAP, 52cee86682Scalum NFS4_SVC_REQUEST_QUIESCE, NFS_GETFH, NFS4_DSS_SETPATHS, 53b89a8333Snatalie li - Sun Microsystems - Irvine United States NFS4_DSS_SETPATHS_SIZE, NFS4_EPHEMERAL_MOUNT_TO, MOUNTD_ARGS, 54b89a8333Snatalie li - Sun Microsystems - Irvine United States NFSCMD_ARGS }; 557c478bd9Sstevel@tonic-gate 56*f44e1126SVitaliy Gusev /* 57*f44e1126SVitaliy Gusev * The protocol version below represents protocol version number and 58*f44e1126SVitaliy Gusev * for version 4 - minor version number. Use NFS_PROT_VERSION() and 59*f44e1126SVitaliy Gusev * NFS_PROT_V4_MINORVERSION() to analyse them. 60*f44e1126SVitaliy Gusev */ 617c478bd9Sstevel@tonic-gate struct nfs_svc_args { 627c478bd9Sstevel@tonic-gate int fd; /* Connection endpoint */ 637c478bd9Sstevel@tonic-gate char *netid; /* Identify transport */ 647c478bd9Sstevel@tonic-gate struct netbuf addrmask; /* Address mask for host */ 65*f44e1126SVitaliy Gusev uint32_t nfs_versmin; /* Min protocol version. NFS_VERS_ */ 66*f44e1126SVitaliy Gusev uint32_t nfs_versmax; /* Max protocol version. NFS_VERS_ */ 677c478bd9Sstevel@tonic-gate int delegation; /* NFSv4 delegation on/off? */ 687c478bd9Sstevel@tonic-gate }; 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 717c478bd9Sstevel@tonic-gate struct nfs_svc_args32 { 727c478bd9Sstevel@tonic-gate int32_t fd; /* Connection endpoint */ 737c478bd9Sstevel@tonic-gate caddr32_t netid; /* Identify transport */ 747c478bd9Sstevel@tonic-gate struct netbuf32 addrmask; /* Address mask for host */ 75*f44e1126SVitaliy Gusev uint32_t nfs_versmin; /* Min protocol version. NFS_VERS_ */ 76*f44e1126SVitaliy Gusev uint32_t nfs_versmax; /* Max protocol version. NFS_VERS_ */ 777c478bd9Sstevel@tonic-gate int32_t delegation; /* NFSv4 delegation on/off? */ 787c478bd9Sstevel@tonic-gate }; 797c478bd9Sstevel@tonic-gate #endif 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate struct exportfs_args { 827c478bd9Sstevel@tonic-gate char *dname; 837c478bd9Sstevel@tonic-gate struct exportdata *uex; 847c478bd9Sstevel@tonic-gate }; 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 877c478bd9Sstevel@tonic-gate struct exportfs_args32 { 887c478bd9Sstevel@tonic-gate caddr32_t dname; 897c478bd9Sstevel@tonic-gate caddr32_t uex; 907c478bd9Sstevel@tonic-gate }; 917c478bd9Sstevel@tonic-gate #endif 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate struct nfs_getfh_args { 947c478bd9Sstevel@tonic-gate char *fname; 9527242a7cSthurlow int vers; 9627242a7cSthurlow int *lenp; 9727242a7cSthurlow char *fhp; 987c478bd9Sstevel@tonic-gate }; 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1017c478bd9Sstevel@tonic-gate struct nfs_getfh_args32 { 1027c478bd9Sstevel@tonic-gate caddr32_t fname; 10327242a7cSthurlow int32_t vers; 10427242a7cSthurlow caddr32_t lenp; 1057c478bd9Sstevel@tonic-gate caddr32_t fhp; 1067c478bd9Sstevel@tonic-gate }; 1077c478bd9Sstevel@tonic-gate #endif 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gate struct nfs_revauth_args { 1107c478bd9Sstevel@tonic-gate int authtype; 1117c478bd9Sstevel@tonic-gate uid_t uid; 1127c478bd9Sstevel@tonic-gate }; 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1157c478bd9Sstevel@tonic-gate struct nfs_revauth_args32 { 1167c478bd9Sstevel@tonic-gate int32_t authtype; 1177c478bd9Sstevel@tonic-gate uid32_t uid; 1187c478bd9Sstevel@tonic-gate }; 1197c478bd9Sstevel@tonic-gate #endif 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gate /* 1227c478bd9Sstevel@tonic-gate * Arguments for establishing lock manager service. If you change 1237c478bd9Sstevel@tonic-gate * lm_svc_args, you should increment the version number. Try to keep 1247c478bd9Sstevel@tonic-gate * supporting one or more old versions of the args, so that old lockd's 1257c478bd9Sstevel@tonic-gate * will work with new kernels. 1267c478bd9Sstevel@tonic-gate */ 1277c478bd9Sstevel@tonic-gate 1287c478bd9Sstevel@tonic-gate enum lm_fmly { LM_INET, LM_INET6, LM_LOOPBACK }; 1297c478bd9Sstevel@tonic-gate enum lm_proto { LM_TCP, LM_UDP }; 1307c478bd9Sstevel@tonic-gate 1317c478bd9Sstevel@tonic-gate struct lm_svc_args { 1327c478bd9Sstevel@tonic-gate int version; /* keep this first */ 1337c478bd9Sstevel@tonic-gate int fd; 1347c478bd9Sstevel@tonic-gate enum lm_fmly n_fmly; /* protocol family */ 1357c478bd9Sstevel@tonic-gate enum lm_proto n_proto; /* protocol */ 1367c478bd9Sstevel@tonic-gate dev_t n_rdev; /* device ID */ 1377c478bd9Sstevel@tonic-gate int debug; /* debugging level */ 1387c478bd9Sstevel@tonic-gate time_t timout; /* client handle life (asynch RPCs) */ 1397c478bd9Sstevel@tonic-gate int grace; /* secs in grace period */ 1407c478bd9Sstevel@tonic-gate time_t retransmittimeout; /* retransmission interval */ 1417c478bd9Sstevel@tonic-gate }; 1427c478bd9Sstevel@tonic-gate 1437c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1447c478bd9Sstevel@tonic-gate struct lm_svc_args32 { 1457c478bd9Sstevel@tonic-gate int32_t version; /* keep this first */ 1467c478bd9Sstevel@tonic-gate int32_t fd; 1477c478bd9Sstevel@tonic-gate enum lm_fmly n_fmly; /* protocol family */ 1487c478bd9Sstevel@tonic-gate enum lm_proto n_proto; /* protocol */ 1497c478bd9Sstevel@tonic-gate dev32_t n_rdev; /* device ID */ 1507c478bd9Sstevel@tonic-gate int32_t debug; /* debugging level */ 1517c478bd9Sstevel@tonic-gate time32_t timout; /* client handle life (asynch RPCs) */ 1527c478bd9Sstevel@tonic-gate int32_t grace; /* secs in grace period */ 1537c478bd9Sstevel@tonic-gate time32_t retransmittimeout; /* retransmission interval */ 1547c478bd9Sstevel@tonic-gate }; 1557c478bd9Sstevel@tonic-gate #endif 1567c478bd9Sstevel@tonic-gate 1577c478bd9Sstevel@tonic-gate #define LM_SVC_CUR_VERS 30 /* current lm_svc_args vers num */ 1587c478bd9Sstevel@tonic-gate 1597c478bd9Sstevel@tonic-gate /* 1607c478bd9Sstevel@tonic-gate * Arguments for nfslog flush service. 1617c478bd9Sstevel@tonic-gate */ 1627c478bd9Sstevel@tonic-gate struct nfsl_flush_args { 1637c478bd9Sstevel@tonic-gate int version; 1647c478bd9Sstevel@tonic-gate int directive; 1657c478bd9Sstevel@tonic-gate char *buff; /* buffer to flush/rename */ 1667c478bd9Sstevel@tonic-gate int buff_len; /* includes terminating '\0' */ 1677c478bd9Sstevel@tonic-gate }; 1687c478bd9Sstevel@tonic-gate 1697c478bd9Sstevel@tonic-gate #define NFSL_FLUSH_ARGS_VERS 1 /* current nfsl_flush_args vers num */ 1707c478bd9Sstevel@tonic-gate 1717c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1727c478bd9Sstevel@tonic-gate struct nfsl_flush_args32 { 1737c478bd9Sstevel@tonic-gate int32_t version; 1747c478bd9Sstevel@tonic-gate int32_t directive; 1757c478bd9Sstevel@tonic-gate caddr32_t buff; /* buffer to flush/rename */ 1767c478bd9Sstevel@tonic-gate int32_t buff_len; /* includes terminating '\0' */ 1777c478bd9Sstevel@tonic-gate }; 1787c478bd9Sstevel@tonic-gate #endif 1797c478bd9Sstevel@tonic-gate 1807c478bd9Sstevel@tonic-gate /* 1817c478bd9Sstevel@tonic-gate * Arguments for initialising RDMA service. 1827c478bd9Sstevel@tonic-gate */ 1837c478bd9Sstevel@tonic-gate struct rdma_svc_args { 1847c478bd9Sstevel@tonic-gate uint32_t poolid; /* Thread Pool ID */ 1857c478bd9Sstevel@tonic-gate char *netid; /* Network Identifier */ 186*f44e1126SVitaliy Gusev uint32_t nfs_versmin; /* Min NFS version. NFS_VERS_... */ 187*f44e1126SVitaliy Gusev uint32_t nfs_versmax; /* Max NFS version. NFS_VERS_... */ 1887c478bd9Sstevel@tonic-gate int delegation; /* NFSv4 delegation on/off? */ 1897c478bd9Sstevel@tonic-gate }; 1907c478bd9Sstevel@tonic-gate 1917c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1927c478bd9Sstevel@tonic-gate struct rdma_svc_args32 { 1937c478bd9Sstevel@tonic-gate uint32_t poolid; /* Thread Pool ID */ 1947c478bd9Sstevel@tonic-gate caddr32_t netid; /* Network Identifier */ 195*f44e1126SVitaliy Gusev uint32_t nfs_versmin; /* Min NFS version. NFS_VERS_... */ 196*f44e1126SVitaliy Gusev uint32_t nfs_versmax; /* Max NFS version. NFS_VERS_... */ 1977c478bd9Sstevel@tonic-gate int32_t delegation; /* NFSv4 delegation on/off? */ 1987c478bd9Sstevel@tonic-gate }; 1997c478bd9Sstevel@tonic-gate #endif 2007c478bd9Sstevel@tonic-gate 2017c478bd9Sstevel@tonic-gate 2027c478bd9Sstevel@tonic-gate #define NFS4_CLRST_VERSION 1 2037c478bd9Sstevel@tonic-gate struct nfs4clrst_args { 2047c478bd9Sstevel@tonic-gate int vers; 2057c478bd9Sstevel@tonic-gate int addr_type; 2067c478bd9Sstevel@tonic-gate void *ap; 2077c478bd9Sstevel@tonic-gate }; 2087c478bd9Sstevel@tonic-gate 2097c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 2107c478bd9Sstevel@tonic-gate struct nfs4clrst_args32 { 2117c478bd9Sstevel@tonic-gate int32_t vers; 2127c478bd9Sstevel@tonic-gate int32_t addr_type; 2137c478bd9Sstevel@tonic-gate caddr32_t ap; 2147c478bd9Sstevel@tonic-gate }; 2157c478bd9Sstevel@tonic-gate #endif 2167c478bd9Sstevel@tonic-gate 2177c478bd9Sstevel@tonic-gate struct nfsidmap_args { 2187c478bd9Sstevel@tonic-gate uint_t state; /* Flushes caches, set state up 1 or down 0 */ 2197c478bd9Sstevel@tonic-gate uint_t did; /* Door id to upcall */ 2207c478bd9Sstevel@tonic-gate }; 2217c478bd9Sstevel@tonic-gate 2227c478bd9Sstevel@tonic-gate #define NFSL_ALL 0x01 /* Flush all buffers */ 2237c478bd9Sstevel@tonic-gate #define NFSL_RENAME 0x02 /* Rename buffer(s) */ 2247c478bd9Sstevel@tonic-gate #define NFSL_SYNC 0x04 /* Perform operation synchronously? */ 2257c478bd9Sstevel@tonic-gate 2267c478bd9Sstevel@tonic-gate #ifdef _KERNEL 2277c478bd9Sstevel@tonic-gate union nfssysargs { 2287c478bd9Sstevel@tonic-gate struct exportfs_args *exportfs_args_u; /* exportfs args */ 2297c478bd9Sstevel@tonic-gate struct nfs_getfh_args *nfs_getfh_args_u; /* nfs_getfh args */ 2307c478bd9Sstevel@tonic-gate struct nfs_svc_args *nfs_svc_args_u; /* nfs_svc args */ 2317c478bd9Sstevel@tonic-gate struct rdma_svc_args *rdma_svc_args_u; /* rdma_svc args */ 2327c478bd9Sstevel@tonic-gate struct nfs_revauth_args *nfs_revauth_args_u; /* nfs_revauth args */ 2337c478bd9Sstevel@tonic-gate struct lm_svc_args *lm_svc_args_u; /* lm_svc args */ 2347c478bd9Sstevel@tonic-gate /* kill_lockmgr args: none */ 2357c478bd9Sstevel@tonic-gate struct nfsl_flush_args *nfsl_flush_args_u; /* nfsl_flush args */ 2367c478bd9Sstevel@tonic-gate struct svcpool_args *svcpool_args_u; /* svcpool args */ 2377c478bd9Sstevel@tonic-gate struct nfs4clrst_args *nfs4clrst_u; /* nfs4 clear state */ 2387c478bd9Sstevel@tonic-gate struct nfsidmap_args *nfsidmap_u; /* nfsidmap */ 2397c478bd9Sstevel@tonic-gate }; 2407c478bd9Sstevel@tonic-gate 2417c478bd9Sstevel@tonic-gate struct nfssysa { 2427c478bd9Sstevel@tonic-gate enum nfssys_op opcode; /* operation discriminator */ 2437c478bd9Sstevel@tonic-gate union nfssysargs arg; /* syscall-specific arg pointer */ 2447c478bd9Sstevel@tonic-gate }; 2457c478bd9Sstevel@tonic-gate #define nfssysarg_exportfs arg.exportfs_args_u 2467c478bd9Sstevel@tonic-gate #define nfssysarg_getfh arg.nfs_getfh_args_u 2477c478bd9Sstevel@tonic-gate #define nfssysarg_svc arg.nfs_svc_args_u 2487c478bd9Sstevel@tonic-gate #define nfssysarg_rdmastart arg.rdma_svc_args_u 2497c478bd9Sstevel@tonic-gate #define nfssysarg_revauth arg.nfs_revauth_args_u 2507c478bd9Sstevel@tonic-gate #define nfssysarg_lmsvc arg.lm_svc_args_u 2517c478bd9Sstevel@tonic-gate #define nfssysarg_nfslflush arg.nfsl_flush_args_u 2527c478bd9Sstevel@tonic-gate #define nfssysarg_svcpool arg.svcpool_args_u 2537c478bd9Sstevel@tonic-gate #define nfssysarg_nfs4clrst arg.nfs4clrst_u 2547c478bd9Sstevel@tonic-gate #define nfssysarg_nfsidmap arg.nfsidmap_u 2557c478bd9Sstevel@tonic-gate 2567c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 2577c478bd9Sstevel@tonic-gate union nfssysargs32 { 2587c478bd9Sstevel@tonic-gate caddr32_t exportfs_args_u; /* exportfs args */ 2597c478bd9Sstevel@tonic-gate caddr32_t nfs_getfh_args_u; /* nfs_getfh args */ 2607c478bd9Sstevel@tonic-gate caddr32_t nfs_svc_args_u; /* nfs_svc args */ 2617c478bd9Sstevel@tonic-gate caddr32_t rdma_svc_args_u; /* rdma_start args */ 2627c478bd9Sstevel@tonic-gate caddr32_t nfs_revauth_args_u; /* nfs_revauth args */ 2637c478bd9Sstevel@tonic-gate caddr32_t lm_svc_args_u; /* lm_svc args */ 2647c478bd9Sstevel@tonic-gate /* kill_lockmgr args: none */ 2657c478bd9Sstevel@tonic-gate caddr32_t nfsl_flush_args_u; /* nfsl_flush args */ 2667c478bd9Sstevel@tonic-gate caddr32_t svcpool_args_u; 2677c478bd9Sstevel@tonic-gate caddr32_t nfs4clrst_u; 2687c478bd9Sstevel@tonic-gate }; 2697c478bd9Sstevel@tonic-gate struct nfssysa32 { 2707c478bd9Sstevel@tonic-gate enum nfssys_op opcode; /* operation discriminator */ 2717c478bd9Sstevel@tonic-gate union nfssysargs32 arg; /* syscall-specific arg pointer */ 2727c478bd9Sstevel@tonic-gate }; 2737c478bd9Sstevel@tonic-gate #endif /* _SYSCALL32 */ 2747c478bd9Sstevel@tonic-gate 2757c478bd9Sstevel@tonic-gate #endif /* _KERNEL */ 2767c478bd9Sstevel@tonic-gate 2777c478bd9Sstevel@tonic-gate struct nfs4_svc_args { 2787c478bd9Sstevel@tonic-gate int fd; /* Connection endpoint */ 2797c478bd9Sstevel@tonic-gate int cmd; 2807c478bd9Sstevel@tonic-gate char *netid; /* Transport Identifier */ 2817c478bd9Sstevel@tonic-gate char *addr; /* Universal Address */ 2827c478bd9Sstevel@tonic-gate char *protofmly; /* Protocol Family */ 2837c478bd9Sstevel@tonic-gate char *proto; /* Protocol, eg. "tcp" */ 2847c478bd9Sstevel@tonic-gate struct netbuf addrmask; /* Address mask for host */ 2857c478bd9Sstevel@tonic-gate }; 2867c478bd9Sstevel@tonic-gate 2877c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 2887c478bd9Sstevel@tonic-gate struct nfs4_svc_args32 { 2897c478bd9Sstevel@tonic-gate int32_t fd; 2907c478bd9Sstevel@tonic-gate int32_t cmd; 2917c478bd9Sstevel@tonic-gate caddr32_t netid; 2927c478bd9Sstevel@tonic-gate caddr32_t addr; 2937c478bd9Sstevel@tonic-gate caddr32_t protofmly; 2947c478bd9Sstevel@tonic-gate caddr32_t proto; 2957c478bd9Sstevel@tonic-gate struct netbuf32 addrmask; 2967c478bd9Sstevel@tonic-gate }; 2977c478bd9Sstevel@tonic-gate #endif 2987c478bd9Sstevel@tonic-gate 2997c478bd9Sstevel@tonic-gate #define NFS4_KRPC_START 1 3007c478bd9Sstevel@tonic-gate #define NFS4_SETPORT 2 3017c478bd9Sstevel@tonic-gate #define NFS4_DQUERY 4 3027c478bd9Sstevel@tonic-gate 303cee86682Scalum /* DSS: distributed stable storage */ 304cee86682Scalum #define NFS4_DSS_STATE_LEAF "v4_state" 305cee86682Scalum #define NFS4_DSS_OLDSTATE_LEAF "v4_oldstate" 306cee86682Scalum #define NFS4_DSS_DIR_MODE 0755 307cee86682Scalum #define NFS4_DSS_NVPAIR_NAME "dss_pathname_array" 308cee86682Scalum /* default storage dir */ 309cee86682Scalum #define NFS4_DSS_VAR_DIR "/var/nfs" 310cee86682Scalum 3117c478bd9Sstevel@tonic-gate #ifdef _KERNEL 3127c478bd9Sstevel@tonic-gate 3137c478bd9Sstevel@tonic-gate #include <sys/systm.h> /* for rval_t typedef */ 3147c478bd9Sstevel@tonic-gate 3157c478bd9Sstevel@tonic-gate extern int nfssys(enum nfssys_op opcode, void *arg); 3167c478bd9Sstevel@tonic-gate extern int exportfs(struct exportfs_args *, model_t, cred_t *); 3177c478bd9Sstevel@tonic-gate extern int nfs_getfh(struct nfs_getfh_args *, model_t, cred_t *); 3187c478bd9Sstevel@tonic-gate extern int nfs_svc(struct nfs_svc_args *, model_t); 3197c478bd9Sstevel@tonic-gate extern int lm_svc(struct lm_svc_args *uap); 3207c478bd9Sstevel@tonic-gate extern int lm_shutdown(void); 3217c478bd9Sstevel@tonic-gate extern int nfsl_flush(struct nfsl_flush_args *, model_t); 3227c478bd9Sstevel@tonic-gate extern int nfs4_svc(struct nfs4_svc_args *, model_t); 323967a528aSDan McDonald extern int rdma_start(struct rdma_svc_args *); 324967a528aSDan McDonald extern int rfs4_clear_client_state(struct nfs4clrst_args *); 3257c478bd9Sstevel@tonic-gate extern void nfs_idmap_args(struct nfsidmap_args *); 326b9238976Sth extern void nfs4_ephemeral_set_mount_to(uint_t); 3271cc55349Srmesta extern void mountd_args(uint_t); 3287c478bd9Sstevel@tonic-gate #endif 3297c478bd9Sstevel@tonic-gate 3307c478bd9Sstevel@tonic-gate #ifdef __cplusplus 3317c478bd9Sstevel@tonic-gate } 3327c478bd9Sstevel@tonic-gate #endif 3337c478bd9Sstevel@tonic-gate 3347c478bd9Sstevel@tonic-gate #endif /* _NFS_NFSSYS_H */ 335