devctl_hdl
ib_cleanup_after_devctl_cmd(devctl_hdl_t devctl_hdl, nvlist_t *user_nvlist)
if (devctl_hdl != NULL) {
devctl_release(devctl_hdl);
devctl_hdl_t *devctl_hdl, nvlist_t **user_nvlistp)
if ((*devctl_hdl = devctl_ap_acquire(apid, 0)) == NULL) {
ib_cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp);
ib_cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp);
ib_cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp);
devctl_hdl_t devctl_hdl = NULL;
if ((rv = setup_for_devctl_cmd(ap_id, &devctl_hdl, &user_nvlist,
if (devctl_ap_getstate(devctl_hdl, user_nvlist,
cleanup_after_devctl_cmd(devctl_hdl, user_nvlist);
cleanup_after_devctl_cmd(devctl_hdl, user_nvlist);
cleanup_after_devctl_cmd(devctl_hdl_t devctl_hdl, nvlist_t *user_nvlist)
if (devctl_hdl != NULL) {
devctl_release(devctl_hdl);
devctl_hdl_t *devctl_hdl,
if ((*devctl_hdl = devctl_ap_acquire((char *)lap_id, oflag)) == NULL) {
(void) cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp);
setup_for_devctl_cmd(const char *ap_id, devctl_hdl_t *devctl_hdl,
cleanup_after_devctl_cmd(devctl_hdl_t devctl_hdl, nvlist_t *user_nvlist);
devctl_hdl_t devctl_hdl = NULL;
if ((rv = setup_for_devctl_cmd(ap_id, &devctl_hdl, &user_nvlist,
if (devctl_ap_getstate(devctl_hdl, user_nvlist, &devctl_ap_state) ==
cleanup_after_devctl_cmd(devctl_hdl, user_nvlist);
cleanup_after_devctl_cmd(devctl_hdl, user_nvlist);
cleanup_after_devctl_cmd(devctl_hdl_t devctl_hdl, nvlist_t *user_nvlist)
if (devctl_hdl != NULL) {
devctl_release(devctl_hdl);
setup_for_devctl_cmd(const char *ap_id, devctl_hdl_t *devctl_hdl,
if ((*devctl_hdl = devctl_ap_acquire((char *)ap_id, oflag)) == NULL) {
cleanup_after_devctl_cmd(*devctl_hdl, *user_nvlistp);
reset_device(devctl_hdl_t devctl_hdl, nvlist_t *nvl)
if (devctl_ap_disconnect(devctl_hdl, nvl) != 0) {
if (devctl_ap_configure(devctl_hdl, nvl) != 0) {
dc_cmd(uint_t cmd, uint_t flags, struct devctl_hdl *dcp, nvlist_t *ulp,
struct devctl_hdl *dcp;
#define DCP(x) ((struct devctl_hdl *)(x))
static int dc_cmd(uint_t, uint_t, struct devctl_hdl *, nvlist_t *, void *);