/*
* 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
*/
/*
*/
#include <fcntl.h>
#include <libdevinfo.h>
#include <stdlib.h>
#include "libdiskmgt.h"
#include "disks_private.h"
descriptor_t **
{
switch (type) {
case DM_BUS:
case DM_CONTROLLER:
}
return (NULL);
}
nvlist_t *
{
return (NULL);
}
return (NULL);
}
return (NULL);
}
}
return (NULL);
}
}
*errp = 0;
return (attrs);
}
{
int i;
if (*errp != 0) {
return (NULL);
}
for (i = 0; buses[i]; i++) {
} else {
/* clean up the unused descriptors */
}
}
}
return (bus);
}
/* ARGSUSED */
descriptor_t **
{
}
char *
{
}
/* ARGSUSED */
nvlist_t *
{
/* There are no stat types defined for controllers */
return (NULL);
}
int
{
int error = 0;
int locked;
bp = cache_get_buslist();
}
return (error);
}
static descriptor_t **
{
char *name;
int cnt;
int i;
int pos;
if (*errp != 0) {
return (NULL);
}
/* Count how many we have (we overcount, but thats ok). */
/* make the snapshot */
return (NULL);
}
/*
* Get this buses parent bus and get the buses that I am the parent of.
*/
pos = 0;
for (i = 0; allbuses[i]; i++) {
} else {
/* clean up the unused descriptor */
}
}
*errp = 0;
return (buses);
}
static descriptor_t **
{
int cnt;
int i;
/* Count how many we have. */
/* make the snapshot */
if (controllers == NULL) {
return (NULL);
}
for (i = 0; bp->controllers[i]; i++) {
if (*errp != 0) {
return (NULL);
}
}
controllers[i] = NULL;
*errp = 0;
return (controllers);
}