3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor/*
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * CDDL HEADER START
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor *
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * The contents of this file are subject to the terms of the
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * Common Development and Distribution License (the "License").
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * You may not use this file except in compliance with the License.
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor *
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * or http://www.opensolaris.org/os/licensing.
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * See the License for the specific language governing permissions
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * and limitations under the License.
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor *
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * When distributing Covered Code, include this CDDL HEADER in each
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * If applicable, add the following below this CDDL HEADER, with the
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * fields enclosed by brackets "[]" replaced with your own identifying
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * information: Portions Copyright [yyyy] [name of copyright owner]
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor *
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * CDDL HEADER END
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor */
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor/*
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor */
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor#include <mdb/mdb_modapi.h>
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor#include "../genunix/list.h"
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylorstatic const mdb_walker_t walkers[] = {
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor { LIST_WALK_NAME, LIST_WALK_DESC,
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor list_walk_init, list_walk_step, list_walk_fini },
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor { NULL }
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor};
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylorstatic const mdb_modinfo_t modinfo = {
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor MDB_API_VERSION, NULL, walkers
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor};
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylorconst mdb_modinfo_t *
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor_mdb_init(void)
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor{
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor return (&modinfo);
3c112a2b34403220c06c3e2fcac403358cfba168Eric Taylor}