/*
* 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 <sys/libdevid.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <strings.h>
#include <stdio.h>
#include <limits.h>
#include <scsi/libsmp_plugin.h>
#include <libdevinfo.h>
struct usmp_dev {
int ud_fd;
char *ud_dev;
};
struct di_walk_arg {
};
static int
{
char *wwn;
return (DI_WALK_CONTINUE);
return (DI_WALK_CONTINUE);
return (DI_WALK_CONTINUE);
return (DI_WALK_TERMINATE);
}
return (DI_WALK_CONTINUE);
}
static void *
{
return (NULL);
return (NULL);
}
(void) smp_error(ESMP_BADTARGET,
"failed to open %s for reading: %s",
return (NULL);
}
(void) smp_error(ESMP_BADTARGET,
return (NULL);
}
break;
}
}
}
return (dp);
}
static void
{
return;
}
static int
{
switch (errno) {
case EINVAL:
case EPERM:
"insufficient privileges"));
case EIO:
default:
}
}
/*
* There is no way to determine the amount of data actually transferred
* so we will just place the upper bound at the allocated size.
*/
return (0);
}
static void
{
}
static uint64_t
{
}
.seo_close = usmp_close,
};
int
{
.sec_name = "usmp",
};
}