/*
* 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 **
int *errp)
{
switch (type) {
case DM_DRIVE:
case DM_PATH:
case DM_BUS:
}
return (NULL);
}
nvlist_t *
{
return (NULL);
}
return (NULL);
}
return (NULL);
}
}
return (NULL);
}
}
return (NULL);
}
}
return (NULL);
}
}
return (NULL);
}
}
return (NULL);
}
}
}
return (NULL);
}
}
*errp = 0;
return (attrs);
}
{
int i;
if (*errp != 0) {
return (NULL);
}
for (i = 0; controllers[i]; i++) {
controller = controllers[i];
} else {
/* clean up the unused descriptors */
}
}
if (controller == NULL) {
}
return (controller);
}
/* ARGSUSED */
descriptor_t **
{
}
char *
{
}
/* ARGSUSED */
nvlist_t *
{
/* There are no stat types defined for controllers */
return (NULL);
}
int
{
int error = 0;
int locked;
}
return (error);
}
static descriptor_t **
{
int pos = 0;
/* make the snapshot */
return (NULL);
}
if (*errp != 0) {
return (NULL);
}
}
*errp = 0;
return (buses);
}
static descriptor_t **
{
int cnt;
int i;
/* Count how many we have. */
/* make the snapshot */
return (NULL);
}
errp);
if (*errp != 0) {
return (NULL);
}
}
*errp = 0;
return (drives);
}
static descriptor_t **
{
int cnt;
int i;
/* Count how many we have. */
cnt = 0;
}
/* make the snapshot */
return (NULL);
}
/*
* The name field of the descriptor is not filled in. Thus, we
* know not to try to lookup drive-path state information within
* the path code if we try to get attributes for this descriptor.
*/
for (i = 0; i < cnt; i++) {
if (*errp != 0) {
return (NULL);
}
}
*errp = 0;
return (paths);
}