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 /* 22*b89a8333Snatalie li - Sun Microsystems - Irvine United States * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate * Use is subject to license terms. 247c478bd9Sstevel@tonic-gate */ 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 277c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate #ifndef _NFS_NFSSYS_H 307c478bd9Sstevel@tonic-gate #define _NFS_NFSSYS_H 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate #ifdef __cplusplus 337c478bd9Sstevel@tonic-gate extern "C" { 347c478bd9Sstevel@tonic-gate #endif 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate /* 377c478bd9Sstevel@tonic-gate * Private definitions for the nfssys system call. 387c478bd9Sstevel@tonic-gate * Note: <nfs/export.h> and <nfs/nfs.h> must be included before 397c478bd9Sstevel@tonic-gate * this file. 407c478bd9Sstevel@tonic-gate */ 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gate /* 437c478bd9Sstevel@tonic-gate * Flavors of nfssys call. Note that OLD_mumble commands are no longer 447c478bd9Sstevel@tonic-gate * implemented, but the entries are kept as placeholders for binary 457c478bd9Sstevel@tonic-gate * compatibility. 467c478bd9Sstevel@tonic-gate */ 4727242a7cSthurlow enum nfssys_op { OLD_NFS_SVC, OLD_ASYNC_DAEMON, EXPORTFS, OLD_NFS_GETFH, 487c478bd9Sstevel@tonic-gate OLD_NFS_CNVT, NFS_REVAUTH, OLD_NFS_FH_TO_FID, OLD_LM_SVC, KILL_LOCKMGR, 497c478bd9Sstevel@tonic-gate LOG_FLUSH, SVCPOOL_CREATE, NFS_SVC, LM_SVC, SVCPOOL_WAIT, SVCPOOL_RUN, 507c478bd9Sstevel@tonic-gate NFS4_SVC, RDMA_SVC_INIT, NFS4_CLR_STATE, NFS_IDMAP, 51cee86682Scalum NFS4_SVC_REQUEST_QUIESCE, NFS_GETFH, NFS4_DSS_SETPATHS, 52*b89a8333Snatalie li - Sun Microsystems - Irvine United States NFS4_DSS_SETPATHS_SIZE, NFS4_EPHEMERAL_MOUNT_TO, MOUNTD_ARGS, 53*b89a8333Snatalie li - Sun Microsystems - Irvine United States NFSCMD_ARGS }; 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate struct nfs_svc_args { 567c478bd9Sstevel@tonic-gate int fd; /* Connection endpoint */ 577c478bd9Sstevel@tonic-gate char *netid; /* Identify transport */ 587c478bd9Sstevel@tonic-gate struct netbuf addrmask; /* Address mask for host */ 597c478bd9Sstevel@tonic-gate int versmin; /* Min protocol version to offer */ 607c478bd9Sstevel@tonic-gate int versmax; /* Max protocol version to offer */ 617c478bd9Sstevel@tonic-gate int delegation; /* NFSv4 delegation on/off? */ 627c478bd9Sstevel@tonic-gate }; 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 657c478bd9Sstevel@tonic-gate struct nfs_svc_args32 { 667c478bd9Sstevel@tonic-gate int32_t fd; /* Connection endpoint */ 677c478bd9Sstevel@tonic-gate caddr32_t netid; /* Identify transport */ 687c478bd9Sstevel@tonic-gate struct netbuf32 addrmask; /* Address mask for host */ 697c478bd9Sstevel@tonic-gate int32_t versmin; /* Min protocol version to offer */ 707c478bd9Sstevel@tonic-gate int32_t versmax; /* Max protocol version to offer */ 717c478bd9Sstevel@tonic-gate int32_t delegation; /* NFSv4 delegation on/off? */ 727c478bd9Sstevel@tonic-gate }; 737c478bd9Sstevel@tonic-gate #endif 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate struct exportfs_args { 767c478bd9Sstevel@tonic-gate char *dname; 777c478bd9Sstevel@tonic-gate struct exportdata *uex; 787c478bd9Sstevel@tonic-gate }; 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 817c478bd9Sstevel@tonic-gate struct exportfs_args32 { 827c478bd9Sstevel@tonic-gate caddr32_t dname; 837c478bd9Sstevel@tonic-gate caddr32_t uex; 847c478bd9Sstevel@tonic-gate }; 857c478bd9Sstevel@tonic-gate #endif 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate struct nfs_getfh_args { 887c478bd9Sstevel@tonic-gate char *fname; 8927242a7cSthurlow int vers; 9027242a7cSthurlow int *lenp; 9127242a7cSthurlow char *fhp; 927c478bd9Sstevel@tonic-gate }; 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 957c478bd9Sstevel@tonic-gate struct nfs_getfh_args32 { 967c478bd9Sstevel@tonic-gate caddr32_t fname; 9727242a7cSthurlow int32_t vers; 9827242a7cSthurlow caddr32_t lenp; 997c478bd9Sstevel@tonic-gate caddr32_t fhp; 1007c478bd9Sstevel@tonic-gate }; 1017c478bd9Sstevel@tonic-gate #endif 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gate struct nfs_revauth_args { 1047c478bd9Sstevel@tonic-gate int authtype; 1057c478bd9Sstevel@tonic-gate uid_t uid; 1067c478bd9Sstevel@tonic-gate }; 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1097c478bd9Sstevel@tonic-gate struct nfs_revauth_args32 { 1107c478bd9Sstevel@tonic-gate int32_t authtype; 1117c478bd9Sstevel@tonic-gate uid32_t uid; 1127c478bd9Sstevel@tonic-gate }; 1137c478bd9Sstevel@tonic-gate #endif 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gate /* 1167c478bd9Sstevel@tonic-gate * Arguments for establishing lock manager service. If you change 1177c478bd9Sstevel@tonic-gate * lm_svc_args, you should increment the version number. Try to keep 1187c478bd9Sstevel@tonic-gate * supporting one or more old versions of the args, so that old lockd's 1197c478bd9Sstevel@tonic-gate * will work with new kernels. 1207c478bd9Sstevel@tonic-gate */ 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gate enum lm_fmly { LM_INET, LM_INET6, LM_LOOPBACK }; 1237c478bd9Sstevel@tonic-gate enum lm_proto { LM_TCP, LM_UDP }; 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gate struct lm_svc_args { 1267c478bd9Sstevel@tonic-gate int version; /* keep this first */ 1277c478bd9Sstevel@tonic-gate int fd; 1287c478bd9Sstevel@tonic-gate enum lm_fmly n_fmly; /* protocol family */ 1297c478bd9Sstevel@tonic-gate enum lm_proto n_proto; /* protocol */ 1307c478bd9Sstevel@tonic-gate dev_t n_rdev; /* device ID */ 1317c478bd9Sstevel@tonic-gate int debug; /* debugging level */ 1327c478bd9Sstevel@tonic-gate time_t timout; /* client handle life (asynch RPCs) */ 1337c478bd9Sstevel@tonic-gate int grace; /* secs in grace period */ 1347c478bd9Sstevel@tonic-gate time_t retransmittimeout; /* retransmission interval */ 1357c478bd9Sstevel@tonic-gate }; 1367c478bd9Sstevel@tonic-gate 1377c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1387c478bd9Sstevel@tonic-gate struct lm_svc_args32 { 1397c478bd9Sstevel@tonic-gate int32_t version; /* keep this first */ 1407c478bd9Sstevel@tonic-gate int32_t fd; 1417c478bd9Sstevel@tonic-gate enum lm_fmly n_fmly; /* protocol family */ 1427c478bd9Sstevel@tonic-gate enum lm_proto n_proto; /* protocol */ 1437c478bd9Sstevel@tonic-gate dev32_t n_rdev; /* device ID */ 1447c478bd9Sstevel@tonic-gate int32_t debug; /* debugging level */ 1457c478bd9Sstevel@tonic-gate time32_t timout; /* client handle life (asynch RPCs) */ 1467c478bd9Sstevel@tonic-gate int32_t grace; /* secs in grace period */ 1477c478bd9Sstevel@tonic-gate time32_t retransmittimeout; /* retransmission interval */ 1487c478bd9Sstevel@tonic-gate }; 1497c478bd9Sstevel@tonic-gate #endif 1507c478bd9Sstevel@tonic-gate 1517c478bd9Sstevel@tonic-gate #define LM_SVC_CUR_VERS 30 /* current lm_svc_args vers num */ 1527c478bd9Sstevel@tonic-gate 1537c478bd9Sstevel@tonic-gate /* 1547c478bd9Sstevel@tonic-gate * Arguments for nfslog flush service. 1557c478bd9Sstevel@tonic-gate */ 1567c478bd9Sstevel@tonic-gate struct nfsl_flush_args { 1577c478bd9Sstevel@tonic-gate int version; 1587c478bd9Sstevel@tonic-gate int directive; 1597c478bd9Sstevel@tonic-gate char *buff; /* buffer to flush/rename */ 1607c478bd9Sstevel@tonic-gate int buff_len; /* includes terminating '\0' */ 1617c478bd9Sstevel@tonic-gate }; 1627c478bd9Sstevel@tonic-gate 1637c478bd9Sstevel@tonic-gate #define NFSL_FLUSH_ARGS_VERS 1 /* current nfsl_flush_args vers num */ 1647c478bd9Sstevel@tonic-gate 1657c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1667c478bd9Sstevel@tonic-gate struct nfsl_flush_args32 { 1677c478bd9Sstevel@tonic-gate int32_t version; 1687c478bd9Sstevel@tonic-gate int32_t directive; 1697c478bd9Sstevel@tonic-gate caddr32_t buff; /* buffer to flush/rename */ 1707c478bd9Sstevel@tonic-gate int32_t buff_len; /* includes terminating '\0' */ 1717c478bd9Sstevel@tonic-gate }; 1727c478bd9Sstevel@tonic-gate #endif 1737c478bd9Sstevel@tonic-gate 1747c478bd9Sstevel@tonic-gate /* 1757c478bd9Sstevel@tonic-gate * Arguments for initialising RDMA service. 1767c478bd9Sstevel@tonic-gate */ 1777c478bd9Sstevel@tonic-gate struct rdma_svc_args { 1787c478bd9Sstevel@tonic-gate uint32_t poolid; /* Thread Pool ID */ 1797c478bd9Sstevel@tonic-gate char *netid; /* Network Identifier */ 1807c478bd9Sstevel@tonic-gate int nfs_versmin; /* Min NFS version to offer */ 1817c478bd9Sstevel@tonic-gate int nfs_versmax; /* Max NFS version to offer */ 1827c478bd9Sstevel@tonic-gate int delegation; /* NFSv4 delegation on/off? */ 1837c478bd9Sstevel@tonic-gate }; 1847c478bd9Sstevel@tonic-gate 1857c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 1867c478bd9Sstevel@tonic-gate struct rdma_svc_args32 { 1877c478bd9Sstevel@tonic-gate uint32_t poolid; /* Thread Pool ID */ 1887c478bd9Sstevel@tonic-gate caddr32_t netid; /* Network Identifier */ 1897c478bd9Sstevel@tonic-gate int32_t nfs_versmin; /* Min NFS version to offer */ 1907c478bd9Sstevel@tonic-gate int32_t nfs_versmax; /* Max NFS version to offer */ 1917c478bd9Sstevel@tonic-gate int32_t delegation; /* NFSv4 delegation on/off? */ 1927c478bd9Sstevel@tonic-gate }; 1937c478bd9Sstevel@tonic-gate #endif 1947c478bd9Sstevel@tonic-gate 1957c478bd9Sstevel@tonic-gate 1967c478bd9Sstevel@tonic-gate #define NFS4_CLRST_VERSION 1 1977c478bd9Sstevel@tonic-gate struct nfs4clrst_args { 1987c478bd9Sstevel@tonic-gate int vers; 1997c478bd9Sstevel@tonic-gate int addr_type; 2007c478bd9Sstevel@tonic-gate void *ap; 2017c478bd9Sstevel@tonic-gate }; 2027c478bd9Sstevel@tonic-gate 2037c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 2047c478bd9Sstevel@tonic-gate struct nfs4clrst_args32 { 2057c478bd9Sstevel@tonic-gate int32_t vers; 2067c478bd9Sstevel@tonic-gate int32_t addr_type; 2077c478bd9Sstevel@tonic-gate caddr32_t ap; 2087c478bd9Sstevel@tonic-gate }; 2097c478bd9Sstevel@tonic-gate #endif 2107c478bd9Sstevel@tonic-gate 2117c478bd9Sstevel@tonic-gate struct nfsidmap_args { 2127c478bd9Sstevel@tonic-gate uint_t state; /* Flushes caches, set state up 1 or down 0 */ 2137c478bd9Sstevel@tonic-gate uint_t did; /* Door id to upcall */ 2147c478bd9Sstevel@tonic-gate }; 2157c478bd9Sstevel@tonic-gate 2167c478bd9Sstevel@tonic-gate #define NFSL_ALL 0x01 /* Flush all buffers */ 2177c478bd9Sstevel@tonic-gate #define NFSL_RENAME 0x02 /* Rename buffer(s) */ 2187c478bd9Sstevel@tonic-gate #define NFSL_SYNC 0x04 /* Perform operation synchronously? */ 2197c478bd9Sstevel@tonic-gate 2207c478bd9Sstevel@tonic-gate #ifdef _KERNEL 2217c478bd9Sstevel@tonic-gate union nfssysargs { 2227c478bd9Sstevel@tonic-gate struct exportfs_args *exportfs_args_u; /* exportfs args */ 2237c478bd9Sstevel@tonic-gate struct nfs_getfh_args *nfs_getfh_args_u; /* nfs_getfh args */ 2247c478bd9Sstevel@tonic-gate struct nfs_svc_args *nfs_svc_args_u; /* nfs_svc args */ 2257c478bd9Sstevel@tonic-gate struct rdma_svc_args *rdma_svc_args_u; /* rdma_svc args */ 2267c478bd9Sstevel@tonic-gate struct nfs_revauth_args *nfs_revauth_args_u; /* nfs_revauth args */ 2277c478bd9Sstevel@tonic-gate struct lm_svc_args *lm_svc_args_u; /* lm_svc args */ 2287c478bd9Sstevel@tonic-gate /* kill_lockmgr args: none */ 2297c478bd9Sstevel@tonic-gate struct nfsl_flush_args *nfsl_flush_args_u; /* nfsl_flush args */ 2307c478bd9Sstevel@tonic-gate struct svcpool_args *svcpool_args_u; /* svcpool args */ 2317c478bd9Sstevel@tonic-gate struct nfs4clrst_args *nfs4clrst_u; /* nfs4 clear state */ 2327c478bd9Sstevel@tonic-gate struct nfsidmap_args *nfsidmap_u; /* nfsidmap */ 2337c478bd9Sstevel@tonic-gate }; 2347c478bd9Sstevel@tonic-gate 2357c478bd9Sstevel@tonic-gate struct nfssysa { 2367c478bd9Sstevel@tonic-gate enum nfssys_op opcode; /* operation discriminator */ 2377c478bd9Sstevel@tonic-gate union nfssysargs arg; /* syscall-specific arg pointer */ 2387c478bd9Sstevel@tonic-gate }; 2397c478bd9Sstevel@tonic-gate #define nfssysarg_exportfs arg.exportfs_args_u 2407c478bd9Sstevel@tonic-gate #define nfssysarg_getfh arg.nfs_getfh_args_u 2417c478bd9Sstevel@tonic-gate #define nfssysarg_svc arg.nfs_svc_args_u 2427c478bd9Sstevel@tonic-gate #define nfssysarg_rdmastart arg.rdma_svc_args_u 2437c478bd9Sstevel@tonic-gate #define nfssysarg_revauth arg.nfs_revauth_args_u 2447c478bd9Sstevel@tonic-gate #define nfssysarg_lmsvc arg.lm_svc_args_u 2457c478bd9Sstevel@tonic-gate #define nfssysarg_nfslflush arg.nfsl_flush_args_u 2467c478bd9Sstevel@tonic-gate #define nfssysarg_svcpool arg.svcpool_args_u 2477c478bd9Sstevel@tonic-gate #define nfssysarg_nfs4clrst arg.nfs4clrst_u 2487c478bd9Sstevel@tonic-gate #define nfssysarg_nfsidmap arg.nfsidmap_u 2497c478bd9Sstevel@tonic-gate 2507c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 2517c478bd9Sstevel@tonic-gate union nfssysargs32 { 2527c478bd9Sstevel@tonic-gate caddr32_t exportfs_args_u; /* exportfs args */ 2537c478bd9Sstevel@tonic-gate caddr32_t nfs_getfh_args_u; /* nfs_getfh args */ 2547c478bd9Sstevel@tonic-gate caddr32_t nfs_svc_args_u; /* nfs_svc args */ 2557c478bd9Sstevel@tonic-gate caddr32_t rdma_svc_args_u; /* rdma_start args */ 2567c478bd9Sstevel@tonic-gate caddr32_t nfs_revauth_args_u; /* nfs_revauth args */ 2577c478bd9Sstevel@tonic-gate caddr32_t lm_svc_args_u; /* lm_svc args */ 2587c478bd9Sstevel@tonic-gate /* kill_lockmgr args: none */ 2597c478bd9Sstevel@tonic-gate caddr32_t nfsl_flush_args_u; /* nfsl_flush args */ 2607c478bd9Sstevel@tonic-gate caddr32_t svcpool_args_u; 2617c478bd9Sstevel@tonic-gate caddr32_t nfs4clrst_u; 2627c478bd9Sstevel@tonic-gate }; 2637c478bd9Sstevel@tonic-gate struct nfssysa32 { 2647c478bd9Sstevel@tonic-gate enum nfssys_op opcode; /* operation discriminator */ 2657c478bd9Sstevel@tonic-gate union nfssysargs32 arg; /* syscall-specific arg pointer */ 2667c478bd9Sstevel@tonic-gate }; 2677c478bd9Sstevel@tonic-gate #endif /* _SYSCALL32 */ 2687c478bd9Sstevel@tonic-gate 2697c478bd9Sstevel@tonic-gate #endif /* _KERNEL */ 2707c478bd9Sstevel@tonic-gate 2717c478bd9Sstevel@tonic-gate struct nfs4_svc_args { 2727c478bd9Sstevel@tonic-gate int fd; /* Connection endpoint */ 2737c478bd9Sstevel@tonic-gate int cmd; 2747c478bd9Sstevel@tonic-gate char *netid; /* Transport Identifier */ 2757c478bd9Sstevel@tonic-gate char *addr; /* Universal Address */ 2767c478bd9Sstevel@tonic-gate char *protofmly; /* Protocol Family */ 2777c478bd9Sstevel@tonic-gate char *proto; /* Protocol, eg. "tcp" */ 2787c478bd9Sstevel@tonic-gate struct netbuf addrmask; /* Address mask for host */ 2797c478bd9Sstevel@tonic-gate }; 2807c478bd9Sstevel@tonic-gate 2817c478bd9Sstevel@tonic-gate #ifdef _SYSCALL32 2827c478bd9Sstevel@tonic-gate struct nfs4_svc_args32 { 2837c478bd9Sstevel@tonic-gate int32_t fd; 2847c478bd9Sstevel@tonic-gate int32_t cmd; 2857c478bd9Sstevel@tonic-gate caddr32_t netid; 2867c478bd9Sstevel@tonic-gate caddr32_t addr; 2877c478bd9Sstevel@tonic-gate caddr32_t protofmly; 2887c478bd9Sstevel@tonic-gate caddr32_t proto; 2897c478bd9Sstevel@tonic-gate struct netbuf32 addrmask; 2907c478bd9Sstevel@tonic-gate }; 2917c478bd9Sstevel@tonic-gate #endif 2927c478bd9Sstevel@tonic-gate 2937c478bd9Sstevel@tonic-gate #define NFS4_KRPC_START 1 2947c478bd9Sstevel@tonic-gate #define NFS4_SETPORT 2 2957c478bd9Sstevel@tonic-gate #define NFS4_DQUERY 4 2967c478bd9Sstevel@tonic-gate 297cee86682Scalum /* DSS: distributed stable storage */ 298cee86682Scalum #define NFS4_DSS_STATE_LEAF "v4_state" 299cee86682Scalum #define NFS4_DSS_OLDSTATE_LEAF "v4_oldstate" 300cee86682Scalum #define NFS4_DSS_DIR_MODE 0755 301cee86682Scalum #define NFS4_DSS_NVPAIR_NAME "dss_pathname_array" 302cee86682Scalum /* default storage dir */ 303cee86682Scalum #define NFS4_DSS_VAR_DIR "/var/nfs" 304cee86682Scalum 3057c478bd9Sstevel@tonic-gate #ifdef _KERNEL 3067c478bd9Sstevel@tonic-gate 3077c478bd9Sstevel@tonic-gate #include <sys/systm.h> /* for rval_t typedef */ 3087c478bd9Sstevel@tonic-gate 3097c478bd9Sstevel@tonic-gate extern int nfssys(enum nfssys_op opcode, void *arg); 3107c478bd9Sstevel@tonic-gate extern int exportfs(struct exportfs_args *, model_t, cred_t *); 3117c478bd9Sstevel@tonic-gate extern int nfs_getfh(struct nfs_getfh_args *, model_t, cred_t *); 3127c478bd9Sstevel@tonic-gate extern int nfs_svc(struct nfs_svc_args *, model_t); 3137c478bd9Sstevel@tonic-gate extern int lm_svc(struct lm_svc_args *uap); 3147c478bd9Sstevel@tonic-gate extern int lm_shutdown(void); 3157c478bd9Sstevel@tonic-gate extern int nfsl_flush(struct nfsl_flush_args *, model_t); 3167c478bd9Sstevel@tonic-gate extern int nfs4_svc(struct nfs4_svc_args *, model_t); 3177c478bd9Sstevel@tonic-gate extern int rdma_start(struct rdma_svc_args *); 3187c478bd9Sstevel@tonic-gate extern void rfs4_clear_client_state(struct nfs4clrst_args *); 3197c478bd9Sstevel@tonic-gate extern void nfs_idmap_args(struct nfsidmap_args *); 320b9238976Sth199096 extern void nfs4_ephemeral_set_mount_to(uint_t); 3211cc55349Srmesta extern void mountd_args(uint_t); 3227c478bd9Sstevel@tonic-gate #endif 3237c478bd9Sstevel@tonic-gate 3247c478bd9Sstevel@tonic-gate #ifdef __cplusplus 3257c478bd9Sstevel@tonic-gate } 3267c478bd9Sstevel@tonic-gate #endif 3277c478bd9Sstevel@tonic-gate 3287c478bd9Sstevel@tonic-gate #endif /* _NFS_NFSSYS_H */ 329