xref: /titanic_52/usr/src/cmd/mdb/common/modules/libcmdutils/libcmdutils.c (revision 3c112a2b34403220c06c3e2fcac403358cfba168)
1*3c112a2bSEric Taylor /*
2*3c112a2bSEric Taylor  * CDDL HEADER START
3*3c112a2bSEric Taylor  *
4*3c112a2bSEric Taylor  * The contents of this file are subject to the terms of the
5*3c112a2bSEric Taylor  * Common Development and Distribution License (the "License").
6*3c112a2bSEric Taylor  * You may not use this file except in compliance with the License.
7*3c112a2bSEric Taylor  *
8*3c112a2bSEric Taylor  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*3c112a2bSEric Taylor  * or http://www.opensolaris.org/os/licensing.
10*3c112a2bSEric Taylor  * See the License for the specific language governing permissions
11*3c112a2bSEric Taylor  * and limitations under the License.
12*3c112a2bSEric Taylor  *
13*3c112a2bSEric Taylor  * When distributing Covered Code, include this CDDL HEADER in each
14*3c112a2bSEric Taylor  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*3c112a2bSEric Taylor  * If applicable, add the following below this CDDL HEADER, with the
16*3c112a2bSEric Taylor  * fields enclosed by brackets "[]" replaced with your own identifying
17*3c112a2bSEric Taylor  * information: Portions Copyright [yyyy] [name of copyright owner]
18*3c112a2bSEric Taylor  *
19*3c112a2bSEric Taylor  * CDDL HEADER END
20*3c112a2bSEric Taylor  */
21*3c112a2bSEric Taylor /*
22*3c112a2bSEric Taylor  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23*3c112a2bSEric Taylor  */
24*3c112a2bSEric Taylor 
25*3c112a2bSEric Taylor #include <mdb/mdb_modapi.h>
26*3c112a2bSEric Taylor 
27*3c112a2bSEric Taylor #include "../genunix/list.h"
28*3c112a2bSEric Taylor 
29*3c112a2bSEric Taylor static const mdb_walker_t walkers[] = {
30*3c112a2bSEric Taylor 	{ LIST_WALK_NAME, LIST_WALK_DESC,
31*3c112a2bSEric Taylor 		list_walk_init, list_walk_step, list_walk_fini },
32*3c112a2bSEric Taylor 	{ NULL }
33*3c112a2bSEric Taylor };
34*3c112a2bSEric Taylor 
35*3c112a2bSEric Taylor static const mdb_modinfo_t modinfo = {
36*3c112a2bSEric Taylor 	MDB_API_VERSION, NULL, walkers
37*3c112a2bSEric Taylor };
38*3c112a2bSEric Taylor 
39*3c112a2bSEric Taylor const mdb_modinfo_t *
40*3c112a2bSEric Taylor _mdb_init(void)
41*3c112a2bSEric Taylor {
42*3c112a2bSEric Taylor 	return (&modinfo);
43*3c112a2bSEric Taylor }
44