/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <mdb/mdb_modapi.h>
#include "bio.h"
typedef struct buf_walk {
} buf_walk_t;
int
{
struct var v;
mdb_warn("only global buf walk supported\n");
return (WALK_ERR);
}
mdb_warn("failed to read var struct");
return (WALK_ERR);
}
mdb_warn("failed to read hbuf pointer");
return (WALK_ERR);
}
mdb_warn("failed to read hbufs");
return (WALK_ERR);
}
return (WALK_NEXT);
}
int
{
/*
* If the next buf_t address we want is NULL or points back at the
* hbuf itself, advance to the next hash bucket. When we reach
* bw_nhbufs, we're done.
*/
return (WALK_DONE);
}
/*
* When we have a buf_t address, read the buffer and invoke our
* walk callback. We keep the next buf_t address in wsp->walk_addr.
*/
}
void
{
}
/*ARGSUSED*/
int
{
page_t p;
buf_t b;
if (argc != 1)
return (DCMD_USAGE);
else
return (DCMD_ERR);
mdb_printf("buf %p has page %p on b_pages list\n",
break;
}
return (DCMD_ERR);
}
return (DCMD_OK);
}