topo_prop.c revision 7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fe
/*
* 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 <strings.h>
#include <assert.h>
#include <topo_prop.h>
#include <topo_string.h>
#include <topo_alloc.h>
#include <topo_error.h>
static topo_pgroup_t *
{
/*
* Check for an existing pgroup
*/
return (pg);
}
}
return (NULL);
}
static topo_propval_t *
{
}
return (NULL);
}
static topo_propval_t *
{
*err = ETOPO_PROP_NOENT;
return (NULL);
}
*err = ETOPO_PROP_NOENT;
return (NULL);
}
return (pv);
}
static int
{
case TOPO_TYPE_INT32:
case TOPO_TYPE_UINT32:
case TOPO_TYPE_INT64:
case TOPO_TYPE_UINT64:
case TOPO_TYPE_STRING:
case TOPO_TYPE_FMRI:
default:
return (ETOPO_PROP_TYPE);
}
}
nvlist_t *
{
return (NULL);
}
nvlist_t *
{
int err;
}
err = 0;
!= 0) {
ETOPO_NOMEM));
}
}
}
pvnvl)) != 0) {
}
}
!= 0) {
}
}
return (nvl);
}
static int
{
return (-1);
}
int
{
== NULL)
return (0);
}
int
{
== NULL)
return (0);
}
int
{
== NULL)
return (0);
}
int
{
== NULL)
return (0);
}
int
{
== NULL)
return (0);
}
int
{
return (0);
}
static void
{
}
static void
{
}
static int
{
return (-1);
}
static int
{
} else {
/*
* Property values may be a shared resources among
* different nodes. We will allocate resources
* on a per-handle basis.
*/
== NULL)
== NULL) {
}
== NULL) {
}
}
switch (type) {
case TOPO_TYPE_INT32:
break;
case TOPO_TYPE_UINT32:
break;
case TOPO_TYPE_INT64:
break;
case TOPO_TYPE_UINT64:
break;
case TOPO_TYPE_STRING:
break;
case TOPO_TYPE_FMRI:
if (topo_hdl_nvdup(thp,
break;
default:
}
return (0);
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
int
{
}
static int
{
return (-1);
}
int
{
/*
* Check for an existing property group and prop val
*/
/*
* Can this propval be inherited?
*/
/*
* Property group should already exist: bump the ref count for this
* propval and add it to the node's property group
*/
== NULL)
return (0);
}
int
{
return (0);
}
}
return (-1);
}
int
int *err)
{
*err = 0;
/*
* Check for an existing pgroup
*/
*err = ETOPO_PROP_DEFD;
return (-1);
}
}
sizeof (topo_pgroup_t))) == NULL) {
*err = ETOPO_NOMEM;
return (-1);
}
*err = ETOPO_NOMEM;
return (-1);
}
return (0);
}
void
{
break;
}
}
return;
}
}
}
void
{
}
}
}
static void
{
}
void
{
}
void
{
}