tsol.c revision 45916cd2fec6e79bca5dee0421bd39e3c2910d1e
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/modhash_impl.h>
#include <mdb/mdb_modapi.h>
#include "tsol.h"
#include "modhash.h"
/* ****************** tnrh ****************** */
typedef struct tnrh_walk_s {
tnrhc_hash_t **hptr;
int idx;
} tnrh_walk_t;
/*
* Free the mdb storage pointed to by the given per-prefix table.
*/
static void
{
while (--ntable >= 0) {
table++;
}
}
/*
* Read in a list of per-prefix-length hash tables. Allocate storage for the
* hashes that are present. On successful return, the table will contain
* pointers to mdb-resident storage, not kernel addresses. On failure, the
* contents will not point to any mdb storage.
*/
static int
{
tnrhc_hash_t **hp;
return (-1);
}
return (-1);
}
addr) == -1) {
return (-1);
}
}
}
return (0);
}
int
{
TSOL_MASK_TABLE_SIZE) == -1) {
return (WALK_ERR);
}
TSOL_MASK_TABLE_SIZE_V6) == -1) {
return (WALK_ERR);
}
return (WALK_NEXT);
}
int
{
int status;
return (WALK_DONE);
} else {
}
}
return (WALK_ERR);
}
wsp->walk_cbdata);
return (status);
}
void
{
}
/* ****************** tnrhtp ****************** */
typedef struct tnrhtp_walk_data_s {
int (*old_callback)(uintptr_t, const void *, void *);
void *old_cbdata;
/* ARGSUSED */
static int
{
return (WALK_ERR);
} else {
twd->old_cbdata));
}
}
int
{
mdb_warn("failed to read tpc_name_hash");
return (WALK_ERR);
}
return (modent_walk_init(wsp));
}
int
{
int retv;
return (retv);
}
void
{
}