/*
* 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
*/
/*
* Delphix (c) 2012 by Delphix. All rights reserved.
*/
/*
*/
#include <sys/pathname.h>
static int
{
if (cmd != DDI_ATTACH)
return (DDI_FAILURE);
DDI_FAILURE) {
return (DDI_FAILURE);
}
return (DDI_SUCCESS);
}
static int
{
if (cmd != DDI_DETACH)
return (DDI_FAILURE);
return (DDI_SUCCESS);
}
/*ARGSUSED*/
static int
{
switch (infocmd) {
case DDI_INFO_DEVT2DEVINFO:
return (DDI_SUCCESS);
case DDI_INFO_DEVT2INSTANCE:
*result = 0;
return (DDI_SUCCESS);
}
return (DDI_FAILURE);
}
/*ARGSUSED*/
int
{
int error = 0;
switch (cmd) {
case DIOCGETDUMPSIZE:
if (dump_conflags & DUMP_ALL)
else {
/*
* We can't give a good answer for the DUMP_CURPROC
* because we won't know which process to use until it
* causes a panic. We'll therefore punt and give the
* caller the size for the kernel.
*
* This kernel size equation takes care of the
* boot time kernel footprint and also accounts
* for availrmem changes due to user explicit locking.
* of these counters.
*/
/*
* Protect against vm vagaries.
*/
}
break;
case DIOCGETCONF:
*rvalp = dump_conflags;
break;
case DIOCSETCONF:
arg == DUMP_CURPROC)
dump_conflags = arg;
else
break;
case DIOCGETDEV:
break;
}
break;
case DIOCSETDEV:
case DIOCTRYDEV:
break;
else
break;
case DIOCDUMP:
else
dumpsys();
break;
case DIOCSETUUID:
&len)) != 0)
break;
if (len != 37) {
break;
}
break;
case DIOCGETUUID:
break;
case DIOCRMDEV:
dumpfini();
break;
default:
}
return (error);
}
nulldev, /* open */
nulldev, /* close */
nodev, /* strategy */
nodev, /* print */
nodev, /* dump */
nodev, /* read */
nodev, /* write */
dump_ioctl, /* ioctl */
nodev, /* devmap */
nodev, /* mmap */
nodev, /* segmap */
nochpoll, /* poll */
ddi_prop_op, /* prop_op */
0, /* streamtab */
};
DEVO_REV, /* devo_rev, */
0, /* refcnt */
dump_info, /* info */
nulldev, /* identify */
nulldev, /* probe */
dump_attach, /* attach */
dump_detach, /* detach */
nodev, /* reset */
&dump_cb_ops, /* driver operations */
(struct bus_ops *)0, /* bus operations */
NULL, /* power */
ddi_quiesce_not_needed, /* quiesce */
};
};
};
int
_init(void)
{
return (mod_install(&modlinkage));
}
int
_fini(void)
{
return (mod_remove(&modlinkage));
}
int
{
}