topo_enum.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <dlfcn.h>
#include <alloca.h>
#include <sys/systeminfo.h>
#include "topo_impl.h"
#include "topo_enum.h"
struct trim_data {
int valid;
struct tnode_list *children;
struct tnode_list *self;
};
static void
{
return;
}
}
}
struct tenumr *topo_enumr_hash_lookup(const char *);
struct tenumr *topo_load_enumerator(const char *);
static int
enumr_ready(struct tenumr *e)
{
struct tenumr_prvt_data *pd;
return (0);
}
/*ARGSUSED*/
static void
{
} else {
}
} else {
} else {
}
}
return;
/*
* Have a range and need to get the actual instances.
* Determine if we have an enumerator already loaded.
*/
if (enumr_ready(enumr))
}
void
{
}
#define ENUMR_HASHLEN 101
static struct tenumr_hash Enumerators;
void
topo_enumr_hash_create(void)
{
sizeof (struct tenumr_hashent));
}
void
{
struct tenumr_prvt_data *pd;
int idx;
"Destroy hash bucket %d entry for %s.",
idx,
entry->te_nodetype);
}
if (destroy_tes) {
}
}
}
}
void
{
struct tenumr_prvt_data *pd;
struct tenumr_hashent *new;
}
key);
} else {
}
} else {
}
}
struct tenumr *
topo_enumr_hash_lookup(const char *nodetype)
{
struct tenumr_hashent *hent;
break;
}
}
if (hent)
return (NULL);
}
/*ARGSUSED*/
struct tenumr *
topo_load_enumerator(const char *nodetype)
{
struct tenumr_prvt_data *newenumr;
void *dlp;
/*
* create a negative hash entry to keep us from
* looking for the same .so's every time
*/
goto eloaded;
}
goto einitbad;
}
goto einitbad;
}
goto einitbad;
}
goto eloaded;
return (ret);
}
void
topo_enum_init(void)
{
}
void
topo_enum_fini(void)
{
}