/*
* 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.
*/
/*
* returned from ri_init.
*/
#include <stdlib.h>
#include <strings.h>
#include "rsrc_info.h"
#include "rsrc_info_impl.h"
static void ri_ap_free(ri_ap_t *);
void
{
return;
ri_ap_free(ap);
}
}
}
}
static void
{
}
}
}
}
void
{
}
}
void
{
}
/*
* Pack everything contained in the handle up inside out.
*/
int
{
return (RI_INVAL);
*sizep = 0;
/*
* Check the handle. If it is NULL, there
* is nothing to pack, so we are done.
*/
return (RI_SUCCESS);
}
goto fail;
}
goto fail;
}
goto fail;
}
encoding) != 0 ||
size) != 0) {
goto fail;
}
encoding) != 0 ||
size) != 0) {
goto fail;
}
goto fail;
}
return (RI_SUCCESS);
fail:
return (RI_FAILURE);
}
/*
* Pack a list of attachment point handles.
*/
static int
{
*sizep = 0;
if (nvlist_alloc(&nvl, 0, 0) != 0) {
return (-1);
}
goto fail;
size) != 0) {
"(%s)\n", RI_AP_T));
goto fail;
}
}
goto fail;
}
return (0);
fail:
return (-1);
}
/*
* Pack a list of ri_dev_t's.
*/
static int
{
*sizep = 0;
if (nvlist_alloc(&nvl, 0, 0) != 0) {
return (-1);
}
goto fail;
size) != 0) {
"(%s)\n", RI_DEV_T));
goto fail;
}
}
goto fail;
}
return (0);
fail:
return (-1);
}
/*
* Pack a list of ri_client_t's.
*/
static int
int encoding)
{
*sizep = 0;
if (nvlist_alloc(&nvl, 0, 0) != 0) {
return (-1);
}
while (client_list != NULL) {
goto fail;
size) != 0) {
"(%s)\n", RI_CLIENT_T));
goto fail;
}
}
goto fail;
}
return (0);
fail:
return (-1);
}
static int
{
return (-1);
}
encoding) != 0)
goto fail;
goto fail;
size) != 0) {
goto fail;
}
goto fail;
size) != 0) {
goto fail;
}
goto fail;
size) != 0) {
goto fail;
}
goto fail;
}
return (0);
fail:
return (-1);
}
static int
{
return (-1);
}
encoding) != 0)
goto fail;
goto fail;
size) != 0) {
goto fail;
}
goto fail;
}
return (0);
fail:
return (-1);
}
static int
{
return (-1);
}
goto fail;
}
/*
* This will only be present if RI_VERBOSE was specified
* in the call to ri_init.
*/
goto fail;
}
goto fail;
}
return (0);
fail:
return (-1);
}
/*
* Pack nvlist_t and add as byte array to another nvlist_t.
*/
static int
int encoding)
{
return (-1);
}
return (-1);
}
return (0);
}
/*
* Unpack buf into ri_hdl_t.
*/
int
{
return (RI_INVAL);
return (RI_FAILURE);
}
goto fail;
}
RI_HDL_FLAGS));
goto fail;
}
size = 0;
RI_HDL_APS));
goto fail;
}
goto fail;
size = 0;
goto fail;
}
goto fail;
size = 0;
goto fail;
}
goto fail;
return (0);
fail:
return (-1);
}
static int
{
return (-1);
}
goto fail;
}
size = 0;
goto fail;
}
goto fail;
} else {
}
}
return (0);
fail:
}
}
return (-1);
}
static int
{
return (-1);
}
goto fail;
}
goto fail;
}
goto fail;
} else {
}
}
return (0);
fail:
}
}
return (-1);
}
static int
{
return (-1);
}
goto fail;
}
size = 0;
goto fail;
}
goto fail;
if (client_list == NULL) {
} else {
}
}
*clients = client_list;
return (0);
fail:
if (client_list != NULL) {
}
}
return (-1);
}
static int
{
return (-1);
}
return (-1);
}
#ifdef DEBUG
#endif /* DEBUG */
/*
* Verbose properties for RCM clients only present if
* RI_VERBOSE was specified for ri_init.
*/
size = 0;
return (-1);
}
}
return (0);
}
static int
{
return (-1);
}
&dev->conf_props) != 0) {
return (-1);
}
#ifdef DEBUG
#endif /* DEBUG */
return (-1);
}
return (-1);
}
return (0);
}
static int
{
return (-1);
}
return (-1);
}
#ifdef DEBUG
#endif /* DEBUG */
RI_AP_CPUS));
return (-1);
}
return (-1);
}
RI_AP_MEMS));
return (-1);
}
return (-1);
}
RI_AP_IOS));
return (-1);
}
return (-1);
}
return (0);
}
/*
* Lookup byte array in old nvlist_t and unpack into new nvlist_t.
*/
static int
{
name));
return (-1);
}
return (-1);
}
return (0);
}
ri_ap_t *
{
return (NULL);
}
}
nvlist_t *
{
return (NULL);
}
return (ap->conf_props);
}
ri_dev_t *
{
return (NULL);
}
}
ri_dev_t *
{
return (NULL);
}
}
ri_dev_t *
{
return (NULL);
}
}
{
return (NULL);
}
}
nvlist_t *
{
return (NULL);
}
return (dev->conf_props);
}
nvlist_t *
{
if (rcm_client == NULL) {
return (NULL);
}
return (rcm_client->usg_props);
}
nvlist_t *
{
if (rcm_client == NULL) {
return (NULL);
}
return (rcm_client->v_props);
}
{
return (NULL);
}
}
{
return (NULL);
}
}