xref: /illumos-gate/usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.h (revision 41e0a469c3dbc14deb2b200f6ca6f6e00b5865d0)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 /*
12  * Copyright 2021 Tintri by DDN, Inc. All rights reserved.
13  */
14 
15 #ifndef _NFS_CLNT_H
16 #define	_NFS_CLNT_H
17 
18 #include <sys/mdb_modapi.h>
19 
20 #include "common.h"
21 
22 extern int nfs_mntinfo_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
23 extern void nfs_mntinfo_help(void);
24 extern int nfs_servinfo_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
25 extern void nfs_servinfo_help(void);
26 extern int nfs4_mntinfo_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
27 extern void nfs4_mntinfo_help(void);
28 extern int nfs4_servinfo_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
29 extern void nfs4_servinfo_help(void);
30 extern int nfs4_server_info_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
31 extern void nfs4_server_info_help(void);
32 extern int nfs4_mimsg_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
33 extern void nfs4_mimsg_help(void);
34 extern int nfs4_fname_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
35 extern int nfs4_foo_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
36 extern int nfs4_oob_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
37 extern int nfs4_os_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
38 extern int nfs4_svnode_dcmd(uintptr_t, uint_t, int, const mdb_arg_t *);
39 
40 extern hash_table_walk_arg_t nfs_rtable_arg;
41 extern int nfs_rtable_walk_init(mdb_walk_state_t *);
42 extern hash_table_walk_arg_t nfs_rtable4_arg;
43 extern int nfs_rtable4_walk_init(mdb_walk_state_t *);
44 extern int nfs_vfs_walk_init(mdb_walk_state_t *);
45 extern int nfs_vfs_walk_step(mdb_walk_state_t *);
46 extern void nfs_vfs_walk_fini(mdb_walk_state_t *);
47 extern int nfs_mnt_walk_init(mdb_walk_state_t *);
48 extern int nfs_mnt_walk_step(mdb_walk_state_t *);
49 extern void nfs_mnt_walk_fini(mdb_walk_state_t *);
50 extern int nfs4_mnt_walk_init(mdb_walk_state_t *);
51 extern int nfs4_mnt_walk_step(mdb_walk_state_t *);
52 extern void nfs4_mnt_walk_fini(mdb_walk_state_t *);
53 extern int nfs_serv_walk_init(mdb_walk_state_t *);
54 extern int nfs_serv_walk_step(mdb_walk_state_t *);
55 extern int nfs4_serv_walk_init(mdb_walk_state_t *);
56 extern int nfs4_serv_walk_step(mdb_walk_state_t *);
57 extern int nfs4_svnode_walk_init(mdb_walk_state_t *);
58 extern int nfs4_svnode_walk_step(mdb_walk_state_t *);
59 extern int nfs4_server_walk_init(mdb_walk_state_t *);
60 extern int nfs4_server_walk_step(mdb_walk_state_t *);
61 extern int nfs_async_walk_init(mdb_walk_state_t *);
62 extern int nfs_async_walk_step(mdb_walk_state_t *);
63 extern int nfs4_async_walk_init(mdb_walk_state_t *);
64 extern int nfs4_async_walk_step(mdb_walk_state_t *);
65 extern int nfs_acache_walk_init(mdb_walk_state_t *);
66 extern void nfs_acache_walk_fini(mdb_walk_state_t *);
67 extern int nfs_acache_rnode_walk_init(mdb_walk_state_t *);
68 extern int nfs_acache_rnode_walk_step(mdb_walk_state_t *);
69 extern int nfs_acache4_walk_init(mdb_walk_state_t *);
70 extern void nfs_acache4_walk_fini(mdb_walk_state_t *);
71 extern int nfs_acache4_rnode_walk_init(mdb_walk_state_t *);
72 extern int nfs_acache4_rnode_walk_step(mdb_walk_state_t *);
73 
74 #endif	/* _NFS_CLNT_H */
75