-int vtonfsv2_mode(enum vtype, mode_t);
-
-void nfs_mbuf_init(void);
-
-void nfs_nhinit(void);
-void nfs_nhinit_finish(void);
-u_long nfs_hash(u_char *, int);
-
-int nfs4_init_clientid(struct nfsmount *);
-int nfs4_setclientid(struct nfsmount *);
-int nfs4_renew(struct nfsmount *, int);
-void nfs4_renew_timer(void *, void *);
-void nfs4_mount_callback_setup(struct nfsmount *);
-void nfs4_mount_callback_shutdown(struct nfsmount *);
-void nfs4_cb_accept(socket_t, void *, int);
-void nfs4_cb_rcv(socket_t, void *, int);
-void nfs4_callback_timer(void *, void *);
-int nfs4_secinfo_rpc(struct nfsmount *, struct nfsreq_secinfo_args *, kauth_cred_t, uint32_t *, int *);
-int nfs4_get_fs_locations(struct nfsmount *, nfsnode_t, u_char *, int, const char *, vfs_context_t, struct nfs_fs_locations *);
-void nfs_fs_locations_cleanup(struct nfs_fs_locations *);
-void nfs4_default_attrs_for_referral_trigger(nfsnode_t, char *, int, struct nfs_vattr *, fhandle_t *);
-
-int nfs_sockaddr_cmp(struct sockaddr *, struct sockaddr *);
-int nfs_connect(struct nfsmount *, int, int);
-void nfs_disconnect(struct nfsmount *);
-void nfs_need_reconnect(struct nfsmount *);
-void nfs_mount_sock_thread_wake(struct nfsmount *);
-int nfs_mount_check_dead_timeout(struct nfsmount *);
-int nfs_mount_gone(struct nfsmount *);
-void nfs_mount_rele(struct nfsmount *);
-void nfs_mount_zombie(struct nfsmount *, int);
-void nfs_mount_make_zombie(struct nfsmount *);
-
-void nfs_rpc_record_state_init(struct nfs_rpc_record_state *);
-void nfs_rpc_record_state_cleanup(struct nfs_rpc_record_state *);
-int nfs_rpc_record_read(socket_t, struct nfs_rpc_record_state *, int, int *, mbuf_t *);
-
-int nfs_getattr(nfsnode_t, struct nfs_vattr *, vfs_context_t, int);
-int nfs_getattrcache(nfsnode_t, struct nfs_vattr *, int);
-int nfs_loadattrcache(nfsnode_t, struct nfs_vattr *, u_int64_t *, int);
-int nfs_attrcachetimeout(nfsnode_t);
-
-int nfs_buf_page_inval(vnode_t vp, off_t offset);
-int nfs_vinvalbuf(vnode_t, int, vfs_context_t, int);
-int nfs_vinvalbuf2(vnode_t, int, thread_t, kauth_cred_t, int);
-int nfs_vinvalbuf_internal(nfsnode_t, int, thread_t, kauth_cred_t, int, int);
-void nfs_wait_bufs(nfsnode_t);
-
-int nfs_request_create(nfsnode_t, mount_t, struct nfsm_chain *, int, thread_t, kauth_cred_t, struct nfsreq **);
-void nfs_request_destroy(struct nfsreq *);
-void nfs_request_ref(struct nfsreq *, int);
-void nfs_request_rele(struct nfsreq *);
-int nfs_request_add_header(struct nfsreq *);
-int nfs_request_send(struct nfsreq *, int);
-void nfs_request_wait(struct nfsreq *);
-int nfs_request_finish(struct nfsreq *, struct nfsm_chain *, int *);
-int nfs_request(nfsnode_t, mount_t, struct nfsm_chain *, int, vfs_context_t, struct nfsreq_secinfo_args *, struct nfsm_chain *, u_int64_t *, int *);
-int nfs_request2(nfsnode_t, mount_t, struct nfsm_chain *, int, thread_t, kauth_cred_t, struct nfsreq_secinfo_args *, int, struct nfsm_chain *, u_int64_t *, int *);
-int nfs_request_gss(mount_t, struct nfsm_chain *, thread_t, kauth_cred_t, int, struct nfs_gss_clnt_ctx *, struct nfsm_chain *, int *);
-int nfs_request_async(nfsnode_t, mount_t, struct nfsm_chain *, int, thread_t, kauth_cred_t, struct nfsreq_secinfo_args *, int, struct nfsreq_cbinfo *, struct nfsreq **);
-int nfs_request_async_finish(struct nfsreq *, struct nfsm_chain *, u_int64_t *, int *);
-void nfs_request_async_cancel(struct nfsreq *);
-void nfs_request_timer(void *, void *);
-int nfs_request_using_gss(struct nfsreq *);
-void nfs_get_xid(uint64_t *);
-int nfs_sigintr(struct nfsmount *, struct nfsreq *, thread_t, int);
-int nfs_noremotehang(thread_t);
-
-int nfs_send(struct nfsreq *, int);
-int nfs_sndlock(struct nfsreq *);
-void nfs_sndunlock(struct nfsreq *);
-
-int nfs_uaddr2sockaddr(const char *, struct sockaddr *);
-
-int nfs_aux_request(struct nfsmount *, thread_t, struct sockaddr *, socket_t, int, mbuf_t, uint32_t, int, int, struct nfsm_chain *);
-int nfs_portmap_lookup(struct nfsmount *, vfs_context_t, struct sockaddr *, socket_t, uint32_t, uint32_t, uint32_t, int);
-
-void nfs_location_next(struct nfs_fs_locations *, struct nfs_location_index *);
-int nfs_location_index_cmp(struct nfs_location_index *, struct nfs_location_index *);
-void nfs_location_mntfromname(struct nfs_fs_locations *, struct nfs_location_index, char *, int, int);
-int nfs_socket_create(struct nfsmount *, struct sockaddr *, int, in_port_t, uint32_t, uint32_t, int, struct nfs_socket **);
-void nfs_socket_destroy(struct nfs_socket *);
-void nfs_socket_options(struct nfsmount *, struct nfs_socket *);
-void nfs_connect_upcall(socket_t, void *, int);
-int nfs_connect_error_class(int);
-int nfs_connect_search_loop(struct nfsmount *, struct nfs_socket_search *);
-void nfs_socket_search_update_error(struct nfs_socket_search *, int);
-void nfs_socket_search_cleanup(struct nfs_socket_search *);
-void nfs_mount_connect_thread(void *, __unused wait_result_t);
-
-int nfs_lookitup(nfsnode_t, char *, int, vfs_context_t, nfsnode_t *);
-void nfs_dulookup_init(struct nfs_dulookup *, nfsnode_t, const char *, int, vfs_context_t);
-void nfs_dulookup_start(struct nfs_dulookup *, nfsnode_t, vfs_context_t);
-void nfs_dulookup_finish(struct nfs_dulookup *, nfsnode_t, vfs_context_t);
-int nfs_dir_buf_cache_lookup(nfsnode_t, nfsnode_t *, struct componentname *, vfs_context_t, int);
-int nfs_dir_buf_search(struct nfsbuf *, struct componentname *, fhandle_t *, struct nfs_vattr *, uint64_t *, time_t *, daddr64_t *, int);
-void nfs_name_cache_purge(nfsnode_t, nfsnode_t, struct componentname *, vfs_context_t);